diff options
author | Jim Meyering <jim@meyering.net> | 1999-04-01 04:56:28 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-04-01 04:56:28 +0000 |
commit | 24df6275fb125fc2561c3b09c2b2a6207da556c1 (patch) | |
tree | 21bd6b6ac59b158aa7eeea0628acde9908e09b3d /src | |
parent | 2500fe4079129d340fd1039e22d8caa9533fa567 (diff) | |
download | coreutils-24df6275fb125fc2561c3b09c2b2a6207da556c1.tar.xz |
(main): Move the declaration of `e' into the scope
where it's used and make it `const'.
Diffstat (limited to 'src')
-rw-r--r-- | src/chown.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chown.c b/src/chown.c index 9ca3c7680..a91e886c8 100644 --- a/src/chown.c +++ b/src/chown.c @@ -324,7 +324,6 @@ main (int argc, char **argv) gid_t group = (uid_t) -1; /* New gid; -1 if not to be changed. */ int errors = 0; int optc; - char *e; program_name = argv[0]; setlocale (LC_ALL, ""); @@ -385,7 +384,8 @@ main (int argc, char **argv) } else { - e = parse_user_spec (argv[optind], &user, &group, &username, &groupname); + const char *e = parse_user_spec (argv[optind], &user, &group, + &username, &groupname); if (e) error (1, 0, "%s: %s", argv[optind], e); if (username == NULL) |