diff options
author | Jim Meyering <jim@meyering.net> | 1993-04-04 23:42:37 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-04-04 23:42:37 +0000 |
commit | d059fe157a88573bfce5303c918add93d3201fcf (patch) | |
tree | b0b5ca7a673dfe39337ae963aef1698ab9474b18 /src | |
parent | cb06e8f515ebf2c6c9d62a813b9ab917b17e1726 (diff) | |
download | coreutils-d059fe157a88573bfce5303c918add93d3201fcf.tar.xz |
(main): Explicitly cast -1 to [ug]id_t to avoid compiler warnings.
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 3971175e2..e1cc6109f 100644 --- a/src/chown.c +++ b/src/chown.c @@ -105,8 +105,8 @@ main (argc, argv) int argc; char **argv; { - uid_t user = -1; /* New uid; -1 if not to be changed. */ - gid_t group = -1; /* New gid; -1 if not to be changed. */ + uid_t user = (uid_t) -1; /* New uid; -1 if not to be changed. */ + gid_t group = (uid_t) -1; /* New gid; -1 if not to be changed. */ int errors = 0; int optc; char *e; |