From 032c69d9e1dfa7929fa6daabeaa53cf12da6ceb8 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 31 Jul 2014 16:01:55 +0200 Subject: md5.c: dont use optreset --- src/bin/md5/md5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/md5/md5.c b/src/bin/md5/md5.c index 9112868..4270bcf 100644 --- a/src/bin/md5/md5.c +++ b/src/bin/md5/md5.c @@ -23,6 +23,7 @@ #include #include +#include #include #include #include @@ -222,8 +223,7 @@ main(int argc, char **argv) usage(); } } - optind = 1; - optreset = 1; + optind = 0; while ((fl = getopt(argc, argv, optstr)) != -1) { switch (fl) { case 'a': -- cgit 1.4.1