Fix warning when compiling with gcc46:

error: variable 'wdone' set but not use

Approved by:	dim
MFC after:	3 days
This commit is contained in:
Eitan Adler 2012-01-10 02:58:20 +00:00
parent af9eff1f20
commit cc898a0e5c

View File

@ -375,7 +375,7 @@ enum listop {
int
main(int argc, char *argv[])
{
int opt, wdone = 0, nargs = 0, i;
int opt, nargs = 0, i;
enum listop what;
char *args[MAX_ARGS];
@ -438,23 +438,18 @@ main(int argc, char *argv[])
switch(what) {
case LO_SERVERS:
show_serverlist(args[0]);
wdone = 1;
break;
case LO_USERS:
show_userlist(args[0]);
wdone = 1;
break;
case LO_QUEUES:
show_queuelist(args[0], args[1]);
wdone = 1;
break;
case LO_VOLUMES:
list_volumes(args[0]);
wdone = 1;
break;
case LO_BINDERY:
list_bindery(args[0], args[1], args[2]);
wdone = 1;
break;
default:
help();