cifs.upcall: fix compile warning
authorSteve French <stevef@smf-t60p.smfdom>
Sat, 16 Aug 2008 18:30:16 +0000 (14:30 -0400)
committerJeff Layton <jlayton@redhat.com>
Sat, 16 Aug 2008 18:30:16 +0000 (14:30 -0400)
commitbd1cf48d7e20cb534bd672bacbf3ac4a87d1a7b4
tree49f6ed32256143939263489781651c5db73aec43
parent1d88c3431a1abf5fe6527fcbdf43972607a317ee
cifs.upcall: fix compile warning

Steve French noticed these warnings when building cifs.upcall:

   Compiling client/cifs.upcall.c
   client/cifs.upcall.c: In function 'usage':
   client/cifs.upcall.c:204: warning: declaration of 'prog' shadows a global declaration
   client/cifs.upcall.c:33: warning: shadowed declaration is here

Change the usage function to not take and arg and have it just use the global
"prog" variable. Fix a typo in the log message generated when an unknown
option is specified. Also getopt() always returns '?' when it sees an unknown
option so there's no point in printing it out.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
source/client/cifs.upcall.c