Module Name:    src
Committed By:   joerg
Date:           Tue Feb  7 22:59:32 UTC 2012

Modified Files:
        src/usr.sbin/makemandb: apropos.c

Log Message:
getopt returns int, not char.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/makemandb/apropos.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/makemandb/apropos.c
diff -u src/usr.sbin/makemandb/apropos.c:1.2 src/usr.sbin/makemandb/apropos.c:1.3
--- src/usr.sbin/makemandb/apropos.c:1.2	Tue Feb  7 19:17:16 2012
+++ src/usr.sbin/makemandb/apropos.c	Tue Feb  7 22:59:32 2012
@@ -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.upadh...@gmail.com>
  * 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 @@ main(int argc, char *argv[])
 #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;

Reply via email to