summaryrefslogtreecommitdiffstats
path: root/utils/statd/sm-notify.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-07-29 17:20:10 +1000
committerNeil Brown <neilb@suse.de>2007-07-29 17:20:10 +1000
commit5835b1eec5a1f1e463c0762c510c6643fa2bff62 (patch)
tree7a8b95c1b9b1273be2272a2dd9302265f9839e4d /utils/statd/sm-notify.c
parentdd087896285da9e160e13ee9f7d75381b67895e3 (diff)
downloadnfs-utils-5835b1eec5a1f1e463c0762c510c6643fa2bff62.tar.gz
nfs-utils-5835b1eec5a1f1e463c0762c510c6643fa2bff62.tar.xz
nfs-utils-5835b1eec5a1f1e463c0762c510c6643fa2bff62.zip
Add -Wstrict-prototypes to compiler args, and fix warnings caused.
Diffstat (limited to 'utils/statd/sm-notify.c')
-rw-r--r--utils/statd/sm-notify.c4
1 files changed, 2 insertions, 2 deletions
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;