Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/acpitools/amldb getopt returns int, not char



details:   https://anonhg.NetBSD.org/src/rev/102804b9dc47
branches:  trunk
changeset: 993989:102804b9dc47
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Oct 14 12:43:58 2018 +0000

description:
getopt returns int, not char

diffstat:

 usr.sbin/acpitools/amldb/amldb.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r eb466afe48f8 -r 102804b9dc47 usr.sbin/acpitools/amldb/amldb.c
--- a/usr.sbin/acpitools/amldb/amldb.c  Sun Oct 14 10:23:32 2018 +0000
+++ b/usr.sbin/acpitools/amldb/amldb.c  Sun Oct 14 12:43:58 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amldb.c,v 1.3 2011/08/29 20:38:54 joerg Exp $  */
+/*     $NetBSD: amldb.c,v 1.4 2018/10/14 12:43:58 jmcneill Exp $       */
 
 /*-
  * Copyright (c) 1999 Mitsuru IWASAKI <iwasaki%FreeBSD.org@localhost>
@@ -29,7 +29,7 @@
  *     $FreeBSD: src/usr.sbin/acpi/amldb/amldb.c,v 1.3 2001/10/22 17:25:32 iwasaki Exp $
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: amldb.c,v 1.3 2011/08/29 20:38:54 joerg Exp $");
+__RCSID("$NetBSD: amldb.c,v 1.4 2018/10/14 12:43:58 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/mman.h>
@@ -156,8 +156,8 @@
 int
 main(int argc, char *argv[])
 {
-       char    c, *progname;
-       int     i;
+       char    *progname;
+       int     c, i;
 
        progname = argv[0];
        while ((c = getopt(argc, argv, "dsth")) != -1) {



Home | Main Index | Thread Index | Old Index