diff options
author | eadler <eadler@FreeBSD.org> | 2012-01-10 02:58:20 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-01-10 02:58:20 +0000 |
commit | f47c6b6cdbac5ddd3d99335a5a36acf2714de3e2 (patch) | |
tree | ad857751f5397c0f8de3f820569abe51802886a1 /usr.bin | |
parent | 26ae1ef8728b9f08912b33bb7c29acf87a2d2a56 (diff) | |
download | FreeBSD-src-f47c6b6cdbac5ddd3d99335a5a36acf2714de3e2.zip FreeBSD-src-f47c6b6cdbac5ddd3d99335a5a36acf2714de3e2.tar.gz |
Fix warning when compiling with gcc46:
error: variable 'wdone' set but not use
Approved by: dim
MFC after: 3 days
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ncplist/ncplist.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.bin/ncplist/ncplist.c b/usr.bin/ncplist/ncplist.c index 9478718..ae3d22c 100644 --- a/usr.bin/ncplist/ncplist.c +++ b/usr.bin/ncplist/ncplist.c @@ -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(); |