diff --git a/utilities/dpctl.c b/utilities/dpctl.c index 7a3a020..acadb88 100644 --- a/utilities/dpctl.c +++ b/utilities/dpctl.c @@ -127,10 +127,9 @@ parse_options(int argc, char *argv[]) for (;;) { unsigned long int timeout; - int indexptr; int c; - c = getopt_long(argc, argv, short_options, long_options, &indexptr); + c = getopt_long(argc, argv, short_options, long_options, NULL); if (c == -1) { break; }