From: Ulrich Drepper Date: Sat, 21 Dec 2002 19:33:56 +0000 (+0000) Subject: (parse_opt): Avoid warning in case -t is used with maximum allowed number. X-Git-Tag: upstream/2.20~13445 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=efe0cd0fdc92442cd70a529e6b23de7ee9442bb0;p=platform%2Fupstream%2Flinaro-glibc.git (parse_opt): Avoid warning in case -t is used with maximum allowed number. --- diff --git a/nptl/perf.c b/nptl/perf.c index 3e92920..515f493 100644 --- a/nptl/perf.c +++ b/nptl/perf.c @@ -530,7 +530,7 @@ parse_opt (int key, char *arg, struct argp_state *state) { case 't': num = strtoul (arg, NULL, 0); - if (num < MAX_THREADS) + if (num <= MAX_THREADS) threads = num; else printf ("\