Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/powerd pass WARNS=4
details: https://anonhg.NetBSD.org/src/rev/40bcfdab0842
branches: trunk
changeset: 588025:40bcfdab0842
user: christos <christos%NetBSD.org@localhost>
date: Sun Feb 05 14:11:18 2006 +0000
description:
pass WARNS=4
diffstat:
usr.sbin/powerd/Makefile | 3 ++-
usr.sbin/powerd/powerd.c | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 79233df427b2 -r 40bcfdab0842 usr.sbin/powerd/Makefile
--- a/usr.sbin/powerd/Makefile Sun Feb 05 14:03:46 2006 +0000
+++ b/usr.sbin/powerd/Makefile Sun Feb 05 14:11:18 2006 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.2 2003/04/18 05:32:37 gmcgarry Exp $
+# $NetBSD: Makefile,v 1.3 2006/02/05 14:11:18 christos Exp $
PROG= powerd
SRCS= powerd.c
+WARNS?= 4
DPADD+= ${LIBUTIL}
LDADD+= -lutil
diff -r 79233df427b2 -r 40bcfdab0842 usr.sbin/powerd/powerd.c
--- a/usr.sbin/powerd/powerd.c Sun Feb 05 14:03:46 2006 +0000
+++ b/usr.sbin/powerd/powerd.c Sun Feb 05 14:11:18 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: powerd.c,v 1.5 2006/02/05 14:03:46 christos Exp $ */
+/* $NetBSD: powerd.c,v 1.6 2006/02/05 14:11:18 christos Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -187,7 +187,7 @@
case 0:
/* Child. */
- (void) execv(path, (char **)argv);
+ (void) execv(path, __UNCONST(argv));
_exit(1);
/* NOTREACHED */
Home |
Main Index |
Thread Index |
Old Index