Module Name:    src
Committed By:   christos
Date:           Sun Aug 14 12:50:10 UTC 2011

Modified Files:
        src/usr.bin/cap_mkdb: Makefile cap_mkdb.c

Log Message:
eliminate gcc4.5 warnings


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/cap_mkdb/Makefile
cvs rdiff -u -r1.25 -r1.26 src/usr.bin/cap_mkdb/cap_mkdb.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.bin/cap_mkdb/Makefile
diff -u src/usr.bin/cap_mkdb/Makefile:1.9 src/usr.bin/cap_mkdb/Makefile:1.10
--- src/usr.bin/cap_mkdb/Makefile:1.9	Tue Jun 21 22:49:44 2011
+++ src/usr.bin/cap_mkdb/Makefile	Sun Aug 14 08:50:10 2011
@@ -1,11 +1,6 @@
-#	$NetBSD: Makefile,v 1.9 2011/06/22 02:49:44 mrg Exp $
+#	$NetBSD: Makefile,v 1.10 2011/08/14 12:50:10 christos Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/6/93
 
 PROG=	cap_mkdb
 
 .include <bsd.prog.mk>
-
-# XXX
-.if ${HAVE_GCC} == 45
-COPTS.cap_mkdb.c+=	-Wno-error
-.endif

Index: src/usr.bin/cap_mkdb/cap_mkdb.c
diff -u src/usr.bin/cap_mkdb/cap_mkdb.c:1.25 src/usr.bin/cap_mkdb/cap_mkdb.c:1.26
--- src/usr.bin/cap_mkdb/cap_mkdb.c:1.25	Wed Feb 18 15:00:32 2009
+++ src/usr.bin/cap_mkdb/cap_mkdb.c	Sun Aug 14 08:50:10 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: cap_mkdb.c,v 1.25 2009/02/18 20:00:32 christos Exp $	*/
+/*	$NetBSD: cap_mkdb.c,v 1.26 2011/08/14 12:50:10 christos Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -40,7 +40,7 @@
 #if 0
 static char sccsid[] = "@(#)cap_mkdb.c	8.2 (Berkeley) 4/27/95";
 #endif
-__RCSID("$NetBSD: cap_mkdb.c,v 1.25 2009/02/18 20:00:32 christos Exp $");
+__RCSID("$NetBSD: cap_mkdb.c,v 1.26 2011/08/14 12:50:10 christos Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -137,7 +137,7 @@
 	if (atexit(dounlink))
 		err(1, "atexit");
 
-	db_build((const char **)argv);
+	db_build((void *)argv);
 
 	if (capdbp->close(capdbp) < 0)
 		err(1, "%s", capname);

Reply via email to