Module Name:    src
Committed By:   jdolecek
Date:           Sat Oct 15 22:23:50 UTC 2016

Modified Files:
        src/usr.sbin/intrctl: intrctl.c

Log Message:
getopt() result is int; fixes build on arm, pointed out by Rin Okuyama


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/intrctl/intrctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/intrctl/intrctl.c
diff -u src/usr.sbin/intrctl/intrctl.c:1.5 src/usr.sbin/intrctl/intrctl.c:1.6
--- src/usr.sbin/intrctl/intrctl.c:1.5	Sat Oct 15 12:14:00 2016
+++ src/usr.sbin/intrctl/intrctl.c	Sat Oct 15 22:23:50 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: intrctl.c,v 1.5 2016/10/15 12:14:00 jdolecek Exp $	*/
+/*	$NetBSD: intrctl.c,v 1.6 2016/10/15 22:23:50 jdolecek Exp $	*/
 
 /*
  * Copyright (c) 2015 Internet Initiative Japan Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: intrctl.c,v 1.5 2016/10/15 12:14:00 jdolecek Exp $");
+__RCSID("$NetBSD: intrctl.c,v 1.6 2016/10/15 22:23:50 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/sysctl.h>
@@ -118,7 +118,7 @@ intrctl_list(int argc, char **argv)
 	void *handle;
 	size_t intridlen;
 	int compact = 0;
-	char ch;
+	int ch;
 
 	while ((ch = getopt(argc, argv, "c")) != -1) {
 		switch (ch) {

Reply via email to