Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/cap_mkdb eliminate gcc4.5 warnings
details: https://anonhg.NetBSD.org/src/rev/4be1bbb74e36
branches: trunk
changeset: 768318:4be1bbb74e36
user: christos <christos%NetBSD.org@localhost>
date: Sun Aug 14 12:50:10 2011 +0000
description:
eliminate gcc4.5 warnings
diffstat:
usr.bin/cap_mkdb/Makefile | 7 +------
usr.bin/cap_mkdb/cap_mkdb.c | 6 +++---
2 files changed, 4 insertions(+), 9 deletions(-)
diffs (43 lines):
diff -r 9d6edf9e4812 -r 4be1bbb74e36 usr.bin/cap_mkdb/Makefile
--- a/usr.bin/cap_mkdb/Makefile Sun Aug 14 12:48:02 2011 +0000
+++ b/usr.bin/cap_mkdb/Makefile Sun Aug 14 12:50:10 2011 +0000
@@ -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
diff -r 9d6edf9e4812 -r 4be1bbb74e36 usr.bin/cap_mkdb/cap_mkdb.c
--- a/usr.bin/cap_mkdb/cap_mkdb.c Sun Aug 14 12:48:02 2011 +0000
+++ b/usr.bin/cap_mkdb/cap_mkdb.c Sun Aug 14 12:50:10 2011 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index