diff options
author | 2016-12-16 17:55:26 +0000 | |
---|---|---|
committer | 2016-12-16 17:55:26 +0000 | |
commit | b73665790ef86b6026583749f00dbda98dc98171 (patch) | |
tree | 222c019e7a38455664409f9695aedad34a610585 | |
parent | Eliminate some gcc warnings about 'unused variables', mostly by (diff) | |
download | wireguard-openbsd-b73665790ef86b6026583749f00dbda98dc98171.tar.xz wireguard-openbsd-b73665790ef86b6026583749f00dbda98dc98171.zip |
Move declaration of an 'i' inside the scope of its use. Which in
turn is inside an #ifdef. Thus making the code clearer by eliminating
an #ifdef in the middle of the declarations.
Suggested by millert@
-rw-r--r-- | bin/md5/md5.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/md5/md5.c b/bin/md5/md5.c index 3e00484d2d4..3f83f721570 100644 --- a/bin/md5/md5.c +++ b/bin/md5/md5.c @@ -1,4 +1,4 @@ -/* $OpenBSD: md5.c,v 1.88 2016/12/16 17:44:59 krw Exp $ */ +/* $OpenBSD: md5.c,v 1.89 2016/12/16 17:55:26 krw Exp $ */ /* * Copyright (c) 2001,2003,2005-2007,2010,2013,2014 @@ -210,9 +210,6 @@ main(int argc, char **argv) char *cp, *input_string, *selective_checklist; const char *optstr; int fl, error, base64; -#if !defined(SHA2_ONLY) - int i; -#endif int bflag, cflag, pflag, rflag, tflag, xflag; if (pledge("stdio rpath wpath cpath", NULL) == -1) @@ -369,6 +366,8 @@ main(int argc, char **argv) else if (input_string) digest_string(input_string, &hl); else if (selective_checklist) { + int i; + error = digest_filelist(selective_checklist, TAILQ_FIRST(&hl), argc, argv); for (i = 0; i < argc; i++) { |