diff options
author | Jared Yanovich <jaredy@cvs.openbsd.org> | 2005-03-25 16:54:18 +0000 |
---|---|---|
committer | Jared Yanovich <jaredy@cvs.openbsd.org> | 2005-03-25 16:54:18 +0000 |
commit | b3ec4210d69766f5f31f3800f470e51633f41b8f (patch) | |
tree | 95f9b0b416302a7807019fcdd1680d5da42496e1 /usr.sbin/procmap/procmap.c | |
parent | c3ee6accf7f4f65c992c9f1b324bcf28dfc65156 (diff) |
Use the return value from getopt() instead of optopt in non-error
cases since optopt is not set in these cases, and it is not required
by POSIX that it should be.
ok millert otto
Diffstat (limited to 'usr.sbin/procmap/procmap.c')
-rw-r--r-- | usr.sbin/procmap/procmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/procmap/procmap.c b/usr.sbin/procmap/procmap.c index a6266391789..3c199936552 100644 --- a/usr.sbin/procmap/procmap.c +++ b/usr.sbin/procmap/procmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: procmap.c,v 1.17 2004/07/09 19:30:52 tdeval Exp $ */ +/* $OpenBSD: procmap.c,v 1.18 2005/03/25 16:54:17 jaredy Exp $ */ /* $NetBSD: pmap.c,v 1.1 2002/09/01 20:32:44 atatat Exp $ */ /* @@ -249,7 +249,7 @@ main(int argc, char *argv[]) break; case 'r': case 'x': - errx(1, "-%c option not implemented, sorry", optopt); + errx(1, "-%c option not implemented, sorry", ch); /*NOTREACHED*/ case '?': default: |