Identify illegal switches, don't print them as '?' in the error..

This commit is contained in:
Peter Wemm 1999-05-18 05:51:09 +00:00
parent 4e045f937b
commit d050fd4212
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=47291

View File

@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)fingerd.c 8.1 (Berkeley) 6/4/93"; static char sccsid[] = "@(#)fingerd.c 8.1 (Berkeley) 6/4/93";
#endif #endif
static const char rcsid[] = 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 */ #endif /* not lint */
#include <sys/param.h> #include <sys/param.h>
@ -93,7 +93,7 @@ main(argc, argv)
break; break;
case '?': case '?':
default: default:
logerr("illegal option -- %c", ch); logerr("illegal option -- %c", optopt);
} }
/* /*