From: Jim Meyering Date: Tue, 3 Jun 2008 11:58:07 +0000 (+0200) Subject: nice.c: avoid a cast X-Git-Tag: v7.0~206 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80213bc66d5b532f47cce96e98e2c29c27ec2487;p=platform%2Fupstream%2Fcoreutils.git nice.c: avoid a cast * src/nice.c (main): Use argv[0], rather than "program_name with a cast". Suggestion from Eric Blake. --- diff --git a/src/nice.c b/src/nice.c index 1dcb3a3cb..13033ec5e 100644 --- a/src/nice.c +++ b/src/nice.c @@ -123,7 +123,7 @@ main (int argc, char **argv) char **fake_argv = argv + (i - 1); /* Ensure that any getopt diagnostics use the right name. */ - fake_argv[0] = (char *) program_name; + fake_argv[0] = argv[0]; /* Initialize getopt_long's internal state. */ optind = 0;