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: cvs/glibc-2_3_2~478 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=efe0cd0fdc92442cd70a529e6b23de7ee9442bb0;p=platform%2Fupstream%2Fglibc.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 3e92920bb2..515f493069 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 ("\