]> git.ipfire.org Git - thirdparty/util-linux.git/commit
setarch: minor code clean up
authorSami Kerola <kerolasa@iki.fi>
Sun, 3 Dec 2017 12:51:17 +0000 (12:51 +0000)
committerKarel Zak <kzak@redhat.com>
Mon, 4 Dec 2017 12:04:16 +0000 (13:04 +0100)
commitcbfa1442761d5b85acd0652f2e7f0e21bf675cd4
tree7bb57bb4fd5943a96365b3e33983baceccfe9812
parent378d58abb1c0d417dc9d4341e9852c27dd475dd7
setarch: minor code clean up

Remove global variable, skip unnecessary comparison, and remove version
printing function when a simple printf() can do the job.  In same go fix
compiler warning.

sys-utils/setarch.c:296:4: warning: null argument where non-null required
(argument 2) [-Wnonnull]
    execl("/bin/bash", NULL);

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