(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:
Assar Westerlund
1997-11-16 06:23:47 +00:00
parent 3503b95755
commit fb718f33a9

View File

@@ -88,9 +88,9 @@ common_setup(krb5_context *context, int *argc, char **argv,
else {
char *ptr;
port = strtol (optarg, &ptr, 10);
if (port == 0 && ptr == optarg)
errx (1, "Bad port `%s'", optarg);
port = strtol (port_str, &ptr, 10);
if (port == 0 && ptr == port_str)
errx (1, "Bad port `%s'", port_str);
port = htons(port);
}
}