Building cifs.upcall is giving this build warning:
authorSteve French <stevef@smf-t60p.smfdom>
Fri, 12 Sep 2008 20:57:59 +0000 (16:57 -0400)
committerKarolin Seeger <kseeger@samba.org>
Mon, 12 Jan 2009 09:11:52 +0000 (10:11 +0100)
   client/cifs.upcall.c:205: warning: function declaration isn’t a prototype

This patch fixes this by properly declaring usage() args as void.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@samba.org>
(cherry picked from commit 186eb5b26e29b687e9eab981a0ef673462f68f78)

source/client/cifs.upcall.c

index d6c1ddcc0e8ca8fdf568f40e215f1efe8b69ca6b..5a2a22a73cac02e66b20ea57d7f1491104c58ebb 100644 (file)
@@ -201,7 +201,7 @@ int cifs_resolver(const key_serial_t key, const char *key_descr)
 }
 
 void
-usage()
+usage(void)
 {
        syslog(LOG_WARNING, "Usage: %s [-c] [-v] key_serial", prog);
        fprintf(stderr, "Usage: %s [-c] [-v] key_serial\n", prog);