From 80213bc66d5b532f47cce96e98e2c29c27ec2487 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 3 Jun 2008 13:58:07 +0200 Subject: [PATCH] nice.c: avoid a cast * src/nice.c (main): Use argv[0], rather than "program_name with a cast". Suggestion from Eric Blake. --- src/nice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1