cifs.upcall: fix compile warning
authorSteve French <stevef@smf-t60p.smfdom>
Sat, 16 Aug 2008 18:30:16 +0000 (14:30 -0400)
committerKarolin Seeger <kseeger@samba.org>
Mon, 18 Aug 2008 13:08:13 +0000 (15:08 +0200)
commitbb75ac0c94fb25c94e6e7911151d00634a39307a
tree719839c596bfb417be93d0ddf5bc8480b7980e42
parentedc624788d658d3cfa19f558d1eaff1a77c9a4a8
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>
(cherry picked from commit bd1cf48d7e20cb534bd672bacbf3ac4a87d1a7b4)
source/client/cifs.upcall.c