]> git.ipfire.org Git - thirdparty/util-linux.git/commit
last: fix few compiler warnings
authorSami Kerola <kerolasa@iki.fi>
Sat, 19 Nov 2011 20:52:38 +0000 (21:52 +0100)
committerSami Kerola <sami.kerola@tomtom.com>
Tue, 29 Nov 2011 16:58:00 +0000 (17:58 +0100)
commit5818a4aa9ee35b69130e3eb7d021ae6e53ee4c00
tree0746c3c24e583c7795e94e182e8fb46831fe4eae
parent0d132731806ed83d105c3fc1f07c98c9ba7be6ae
last: fix few compiler warnings

Calling abort() as default seems appropriate as the default should be
impossible to reach.

last.c:355:3: warning: switch missing default case [-Wswitch-default]

And simple line removals.

last.c:110:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls]
last.c:111:15: warning: redundant redeclaration of 'optarg' [-Wredundant-decls]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
login-utils/last.c