(common_setup): don't use `optarg'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4011 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -88,9 +88,9 @@ common_setup(krb5_context *context, int *argc, char **argv,
|
|||||||
else {
|
else {
|
||||||
char *ptr;
|
char *ptr;
|
||||||
|
|
||||||
port = strtol (optarg, &ptr, 10);
|
port = strtol (port_str, &ptr, 10);
|
||||||
if (port == 0 && ptr == optarg)
|
if (port == 0 && ptr == port_str)
|
||||||
errx (1, "Bad port `%s'", optarg);
|
errx (1, "Bad port `%s'", port_str);
|
||||||
port = htons(port);
|
port = htons(port);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user