projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4b92612
)
nice.c: avoid a cast
author
Jim Meyering
<meyering@redhat.com>
Tue, 3 Jun 2008 11:58:07 +0000
(13:58 +0200)
committer
Jim Meyering
<meyering@redhat.com>
Tue, 3 Jun 2008 11:58:07 +0000
(13:58 +0200)
* src/nice.c (main): Use argv[0], rather than
"program_name with a cast". Suggestion from Eric Blake.
src/nice.c
patch
|
blob
|
history
diff --git
a/src/nice.c
b/src/nice.c
index 1dcb3a3cbce02cb97af392e895c30eda904020e7..13033ec5e0acb7185aacc7c7dc3507ded800e5b0 100644
(file)
--- 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;