Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/intrctl getopt() result is int; fixes build on arm,...
details: https://anonhg.NetBSD.org/src/rev/a720e3952119
branches: trunk
changeset: 348358:a720e3952119
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sat Oct 15 22:23:50 2016 +0000
description:
getopt() result is int; fixes build on arm, pointed out by Rin Okuyama
diffstat:
usr.sbin/intrctl/intrctl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 914b8bf07b82 -r a720e3952119 usr.sbin/intrctl/intrctl.c
--- a/usr.sbin/intrctl/intrctl.c Sat Oct 15 20:31:15 2016 +0000
+++ b/usr.sbin/intrctl/intrctl.c Sat Oct 15 22:23:50 2016 +0000
@@ -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 @@
void *handle;
size_t intridlen;
int compact = 0;
- char ch;
+ int ch;
while ((ch = getopt(argc, argv, "c")) != -1) {
switch (ch) {
Home |
Main Index |
Thread Index |
Old Index