diff options
author | Jim Meyering <meyering@redhat.com> | 2008-06-03 13:58:07 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-06-03 13:58:07 +0200 |
commit | 80213bc66d5b532f47cce96e98e2c29c27ec2487 (patch) | |
tree | 8854690ada814770719e9b142e26225bc5367cce | |
parent | 4b9261294459979686940563334111311a5e57d7 (diff) | |
download | coreutils-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.c | 2 |
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; |