Consistently use defined exit codes.
authorJiri Popelka <jpopelka@redhat.com>
Thu, 21 Jun 2012 09:30:22 +0000 (11:30 +0200)
committerJiri Popelka <jpopelka@redhat.com>
Tue, 26 Jun 2012 10:05:28 +0000 (12:05 +0200)
commit699e5db88236deff1ff4cc657a8d978c25790587
tree19854119440fe0f049abc7f51c96e7668313d449
parent6d09cad3b7fdd9d22648cd3ee64ce6bc8e2faab0
Consistently use defined exit codes.

Tools have been inconsistently using exit codes when started with
--help/--version.
With this patch all tools use exit codes E_USAGE/E_VERSION defined
in net-support.h.

There's probably no rule what exit codes should programs use when
started with --help/--version, but when I'm checking programs on
my system most of them use 0 (SUCCESS) exit code.
Therefore I redefined E_USAGE/E_VERSION to EXIT_SUCCESS (0).
hostname.c
ifconfig.c
ipmaddr.c
iptunnel.c
lib/net-support.h
mii-tool.c
nameif.c
plipconfig.c
slattach.c