Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/makemandb getopt returns int, not char.
details: https://anonhg.NetBSD.org/src/rev/17c0fc92a7cd
branches: trunk
changeset: 773588:17c0fc92a7cd
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Feb 07 22:59:32 2012 +0000
description:
getopt returns int, not char.
diffstat:
usr.sbin/makemandb/apropos.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 09adb8d98d9d -r 17c0fc92a7cd usr.sbin/makemandb/apropos.c
--- a/usr.sbin/makemandb/apropos.c Tue Feb 07 22:58:49 2012 +0000
+++ b/usr.sbin/makemandb/apropos.c Tue Feb 07 22:59:32 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: apropos.c,v 1.2 2012/02/07 19:17:16 joerg Exp $ */
+/* $NetBSD: apropos.c,v 1.3 2012/02/07 22:59:32 joerg Exp $ */
/*-
* Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay%gmail.com@localhost>
* All rights reserved.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: apropos.c,v 1.2 2012/02/07 19:17:16 joerg Exp $");
+__RCSID("$NetBSD: apropos.c,v 1.3 2012/02/07 22:59:32 joerg Exp $");
#include <err.h>
#include <search.h>
@@ -73,10 +73,9 @@
#endif
query_args args;
char *query = NULL; // the user query
- char ch;
char *errmsg = NULL;
char *str;
- int rc = 0;
+ int ch, rc = 0;
callback_data cbdata;
cbdata.out = stdout; // the default output stream
cbdata.count = 0;
Home |
Main Index |
Thread Index |
Old Index