ip/ipconfig: fix exit status for ndbconfig

This commit is contained in:
cinap_lenrek 2018-05-02 00:03:54 +02:00
parent cedf916289
commit 2247741fe0

View file

@ -318,8 +318,7 @@ main(int argc, char **argv)
plan9 = 0; plan9 = 0;
break; break;
case 'h': case 'h':
snprint(conf.hostname, sizeof conf.hostname, "%s", snprint(conf.hostname, sizeof conf.hostname, "%s", EARGF(usage()));
EARGF(usage()));
sendhostname = 1; sendhostname = 1;
break; break;
case 'm': case 'm':
@ -389,7 +388,7 @@ main(int argc, char **argv)
if(dondbconfig){ if(dondbconfig){
dodhcp = 0; dodhcp = 0;
ndbconfig(); ndbconfig();
return; break;
} }
doadd(); doadd();
break; break;