Building cifs.upcall is giving this build warning:
authorSteve French <stevef@smf-t60p.smfdom>
Tue, 5 Aug 2008 20:36:11 +0000 (15:36 -0500)
committerSteve French <stevef@smf-t60p.smfdom>
Tue, 5 Aug 2008 20:36:11 +0000 (15:36 -0500)
   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>
(This used to be commit 148a012421cdd875167e708c5dfa771d97bf9856)

source3/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);