summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-01-12 04:37:51 +0000
committerderaadt <deraadt@openbsd.org>2014-01-12 04:37:51 +0000
commit2b59f043e42e958804759222af0b32306f1fe78e (patch)
treed20afbe4fc3cfd65b2669ff6d633050083b24388
parentSince the return value of read_client_conf() is not checked, don't (diff)
downloadwireguard-openbsd-2b59f043e42e958804759222af0b32306f1fe78e.tar.xz
wireguard-openbsd-2b59f043e42e958804759222af0b32306f1fe78e.zip
Also move case 'c' into the #ifdef for a smaller binary. It will fall into
default, giving a nice failure. I have not removed -c from the usage() or getopt() because it is too much butchering...
-rw-r--r--bin/md5/md5.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/md5/md5.c b/bin/md5/md5.c
index ae989a0f936..559b2c0f2e3 100644
--- a/bin/md5/md5.c
+++ b/bin/md5/md5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: md5.c,v 1.68 2014/01/11 04:01:13 deraadt Exp $ */
+/* $OpenBSD: md5.c,v 1.69 2014/01/12 04:37:51 deraadt Exp $ */
/*
* Copyright (c) 2001,2003,2005-2007,2010,2013,2014
@@ -305,15 +305,15 @@ main(int argc, char **argv)
case 'b':
/* has already been parsed */
break;
- case 'c':
- cflag = 1;
- break;
case 'h':
ofile = fopen(optarg, "w");
if (ofile == NULL)
err(1, "%s", optarg);
break;
#if !defined(SHA2_ONLY)
+ case 'c':
+ cflag = 1;
+ break;
case 'o':
if (strcmp(optarg, "1") == 0)
hf = &functions[1];