From fb718f33a94fb9663fc809f4f0201fe49186ab41 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 16 Nov 1997 06:23:47 +0000 Subject: [PATCH] (common_setup): don't use `optarg' git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4011 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/test/common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/appl/test/common.c b/appl/test/common.c index 77323a579..0e8dba6fe 100644 --- a/appl/test/common.c +++ b/appl/test/common.c @@ -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); } }