(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 { | ||||
| 	    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); | ||||
| 	} | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Assar Westerlund
					Assar Westerlund