X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=src%2Fchage.c;h=054b96dde4851279094123d84436d89a268e1b01;hb=6eb0500d3debb909e201aacc7867bb41e2f4778f;hp=37a610d2337c4a86a3aab7c2fa0278a7a511c8a1;hpb=7b8c4952a8c765ca2eff747f7413ef5e3537269d;p=shadow diff --git a/src/chage.c b/src/chage.c index 37a610d2..054b96dd 100644 --- a/src/chage.c +++ b/src/chage.c @@ -381,7 +381,6 @@ static void process_flags (int argc, char **argv) /* * Parse the command line options. */ - int option_index = 0; int c; static struct option long_options[] = { {"lastday", required_argument, NULL, 'd'}, @@ -395,9 +394,8 @@ static void process_flags (int argc, char **argv) {NULL, 0, NULL, '\0'} }; - while ((c = - getopt_long (argc, argv, "d:E:hI:lm:M:W:", long_options, - &option_index)) != -1) { + while ((c = getopt_long (argc, argv, "d:E:hI:lm:M:W:", + long_options, NULL)) != -1) { switch (c) { case 'd': dflg = true;