From 5835b1eec5a1f1e463c0762c510c6643fa2bff62 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Sun, 29 Jul 2007 17:20:10 +1000 Subject: Add -Wstrict-prototypes to compiler args, and fix warnings caused. --- utils/statd/sm-notify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/statd/sm-notify.c') diff --git a/utils/statd/sm-notify.c b/utils/statd/sm-notify.c index 98c03f9..bb67c37 100644 --- a/utils/statd/sm-notify.c +++ b/utils/statd/sm-notify.c @@ -86,7 +86,7 @@ static int addr_get_port(nsm_address *); static void addr_set_port(nsm_address *, int); static struct addrinfo *host_lookup(int, const char *); void nsm_log(int fac, const char *fmt, ...); -static int record_pid(); +static int record_pid(void); static void drop_privs(void); static void set_kernel_nsm_state(int state); @@ -730,7 +730,7 @@ nsm_log(int fac, const char *fmt, ...) * program exits. * If file already exists, fail. */ -static int record_pid() +static int record_pid(void) { char pid[20]; int fd; -- cgit