From 84410a8886cdd184c04f73101a3ad170d66e0ecb Mon Sep 17 00:00:00 2001 From: Philippe Gerum Date: Sun, 17 Nov 2019 18:51:05 +0100 Subject: [PATCH] benchmarks/hectic: do not use local shadow variables --- benchmarks/hectic.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/benchmarks/hectic.c b/benchmarks/hectic.c index 090842e..f1d2ddb 100644 --- a/benchmarks/hectic.c +++ b/benchmarks/hectic.c @@ -1138,8 +1138,8 @@ int main(int argc, const char *argv[]) struct cpu_tasks *cpus; struct sched_param sp; char buf[BUFSIZ]; + int sig, fd, c; sigset_t mask; - int sig, fd; status = EXIT_SUCCESS; main_tid = pthread_self(); @@ -1164,9 +1164,8 @@ int main(int argc, const char *argv[]) { "cpu", 1, NULL, 'c' }, { NULL, 0, NULL, 0 } }; - int i = 0; - int c = getopt_long(argc, (char *const *) argv, "hl:nqQs:T:c:", - long_options, &i); + c = getopt_long(argc, (char *const *) argv, "hl:nqQs:T:c:", + long_options, NULL); if (c == -1) break;