diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2007-03-28 11:30:16 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2007-03-28 11:30:16 +0000 |
commit | 541ac2665afb844a2f5efa1f8ef95e77e1f44b7a (patch) | |
tree | 47f2f50ed93d13995a87082b25ebed201da2c606 /bin/md5 | |
parent | d1ed4fa10b4ed08d741cc2f0430e0e15c5e6c564 (diff) |
Supress warnings for the first getopt() pass. Otherwise,
any "unknown option" messages get printed twice.
Diffstat (limited to 'bin/md5')
-rw-r--r-- | bin/md5/md5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/md5/md5.c b/bin/md5/md5.c index 13a0d6c7315..e0f45aaaaba 100644 --- a/bin/md5/md5.c +++ b/bin/md5/md5.c @@ -1,4 +1,4 @@ -/* $OpenBSD: md5.c,v 1.41 2007/03/27 13:12:41 millert Exp $ */ +/* $OpenBSD: md5.c,v 1.42 2007/03/28 11:30:15 millert Exp $ */ /* * Copyright (c) 2001,2003,2005-2006 Todd C. Miller <Todd.Miller@courtesan.com> @@ -214,7 +214,7 @@ main(int argc, char **argv) error = bflag = cflag = pflag = qflag = rflag = tflag = xflag = 0; /* Check for -b option early since it changes behavior. */ - while ((fl = getopt(argc, argv, OPTSTRING)) != -1) { + while ((fl = getopt(argc, argv, ":" OPTSTRING)) != -1) { if (fl == 'b') bflag = 1; } |