libbb: reuse "bad port" error message string
function old new delta .rodata 104251 104232 -19 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
c421388dca
commit
c00bcf2d2c
@ -231,7 +231,7 @@ IF_NOT_FEATURE_IPV6(sa_family_t af = AF_INET;)
|
|||||||
cp++; /* skip ':' */
|
cp++; /* skip ':' */
|
||||||
port = bb_strtou(cp, NULL, 10);
|
port = bb_strtou(cp, NULL, 10);
|
||||||
if (errno || (unsigned)port > 0xffff) {
|
if (errno || (unsigned)port > 0xffff) {
|
||||||
bb_error_msg("bad port spec '%s'", org_host);
|
bb_error_msg("bad port '%s'", cp);
|
||||||
if (ai_flags & DIE_ON_ERROR)
|
if (ai_flags & DIE_ON_ERROR)
|
||||||
xfunc_die();
|
xfunc_die();
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user