Menu

Commit [699e5d]  Maximize  Restore  History

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).

Jiri Popelka Jiri Popelka 2012-06-21

changed hostname.c
changed ifconfig.c
changed ipmaddr.c
changed iptunnel.c
changed lib/net-support.h
changed mii-tool.c
changed nameif.c
changed plipconfig.c
changed slattach.c
hostname.c Diff Switch to side-by-side view
Loading...
ifconfig.c Diff Switch to side-by-side view
Loading...
ipmaddr.c Diff Switch to side-by-side view
Loading...
iptunnel.c Diff Switch to side-by-side view
Loading...
lib/net-support.h Diff Switch to side-by-side view
Loading...
mii-tool.c Diff Switch to side-by-side view
Loading...
nameif.c Diff Switch to side-by-side view
Loading...
plipconfig.c Diff Switch to side-by-side view
Loading...
slattach.c Diff Switch to side-by-side view
Loading...