diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-12-16 17:55:27 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-12-16 17:55:27 +0000 |
commit | 148454055f80ef0712f54af22ac8c7b8d076464d (patch) | |
tree | 236b666ef9788933745e94129c3f7e4dc6a65571 /bin/md5/md5.c | |
parent | aded13c23b29033769b54120973c097caf998bf5 (diff) |
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@
Diffstat (limited to 'bin/md5/md5.c')
-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++) { |