benchmarks/hectic: do not use local shadow variables
This commit is contained in:
parent
d04d98df91
commit
84410a8886
|
@ -1138,8 +1138,8 @@ int main(int argc, const char *argv[])
|
||||||
struct cpu_tasks *cpus;
|
struct cpu_tasks *cpus;
|
||||||
struct sched_param sp;
|
struct sched_param sp;
|
||||||
char buf[BUFSIZ];
|
char buf[BUFSIZ];
|
||||||
|
int sig, fd, c;
|
||||||
sigset_t mask;
|
sigset_t mask;
|
||||||
int sig, fd;
|
|
||||||
|
|
||||||
status = EXIT_SUCCESS;
|
status = EXIT_SUCCESS;
|
||||||
main_tid = pthread_self();
|
main_tid = pthread_self();
|
||||||
|
@ -1164,9 +1164,8 @@ int main(int argc, const char *argv[])
|
||||||
{ "cpu", 1, NULL, 'c' },
|
{ "cpu", 1, NULL, 'c' },
|
||||||
{ NULL, 0, NULL, 0 }
|
{ NULL, 0, NULL, 0 }
|
||||||
};
|
};
|
||||||
int i = 0;
|
c = getopt_long(argc, (char *const *) argv, "hl:nqQs:T:c:",
|
||||||
int c = getopt_long(argc, (char *const *) argv, "hl:nqQs:T:c:",
|
long_options, NULL);
|
||||||
long_options, &i);
|
|
||||||
|
|
||||||
if (c == -1)
|
if (c == -1)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue