Return EX_USAGE instead of EX_CONFIG when both -4 and -6 are specified

This commit is contained in:
Mike Belopuhov 2014-03-02 02:46:24 +01:00
parent 4284008c22
commit 2e37e9fb53

2
icbd.c
View File

@ -108,7 +108,7 @@ main(int argc, char *argv[])
argc++;
if (inet4 && inet6)
errx(EX_CONFIG, "Can't specify both -4 and -6");
errx(EX_USAGE, "Can't specify both -4 and -6");
tzset();
(void)setlocale(LC_ALL, "C");