summaryrefslogtreecommitdiffstats
path: root/libexec/fingerd
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-05-18 05:51:09 +0000
committerpeter <peter@FreeBSD.org>1999-05-18 05:51:09 +0000
commitf2cbc8ce7a5bca71786f3fc0e985466bca23d37c (patch)
tree8a9078f9692f07e8759689b9e94d7a34551f9233 /libexec/fingerd
parent016bcfa9ed0679b9ed8e5981f0ec3305d6f35128 (diff)
downloadFreeBSD-src-f2cbc8ce7a5bca71786f3fc0e985466bca23d37c.zip
FreeBSD-src-f2cbc8ce7a5bca71786f3fc0e985466bca23d37c.tar.gz
Identify illegal switches, don't print them as '?' in the error..
Diffstat (limited to 'libexec/fingerd')
-rw-r--r--libexec/fingerd/fingerd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/fingerd/fingerd.c b/libexec/fingerd/fingerd.c
index d14e278..e65f283 100644
--- a/libexec/fingerd/fingerd.c
+++ b/libexec/fingerd/fingerd.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)fingerd.c 8.1 (Berkeley) 6/4/93";
#endif
static const char rcsid[] =
- "$Id: fingerd.c,v 1.12 1999/04/06 23:05:56 brian Exp $";
+ "$Id: fingerd.c,v 1.13 1999/04/07 06:00:22 brian Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -93,7 +93,7 @@ main(argc, argv)
break;
case '?':
default:
- logerr("illegal option -- %c", ch);
+ logerr("illegal option -- %c", optopt);
}
/*
OpenPOWER on IntegriCloud