X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fstatd%2Fsm-notify.c;h=bb67c378e94839254bbb49ec093bef71dda11317;hp=98c03f9d142656906d36bb7e558851d6b5328c6c;hb=5835b1eec5a1f1e463c0762c510c6643fa2bff62;hpb=7c96fc46bb3aec5e9b8ecc4b637e66dc33db3a90 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;