summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-06-03 13:58:07 +0200
committerJim Meyering <meyering@redhat.com>2008-06-03 13:58:07 +0200
commit80213bc66d5b532f47cce96e98e2c29c27ec2487 (patch)
tree8854690ada814770719e9b142e26225bc5367cce
parent4b9261294459979686940563334111311a5e57d7 (diff)
downloadcoreutils-80213bc66d5b532f47cce96e98e2c29c27ec2487.tar.xz
nice.c: avoid a cast
* src/nice.c (main): Use argv[0], rather than "program_name with a cast". Suggestion from Eric Blake.
-rw-r--r--src/nice.c2
1 files changed, 1 insertions, 1 deletions
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;