diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-03-25 21:28:37 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-03-25 21:28:37 +0000 |
commit | a6e41bdf2a251ca990386894e70eed0ef7126d43 (patch) | |
tree | 04ae382b143e3eef1889f3e36b437daaaaf7ad00 /lib/libc/compat-43/setrgid.c | |
parent | 101d0c89483da5a9c0803eaad6eb2c62d6160b27 (diff) |
Cast negative args to their unsigned type
Diffstat (limited to 'lib/libc/compat-43/setrgid.c')
-rw-r--r-- | lib/libc/compat-43/setrgid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/compat-43/setrgid.c b/lib/libc/compat-43/setrgid.c index f8840fea895..3442219999a 100644 --- a/lib/libc/compat-43/setrgid.c +++ b/lib/libc/compat-43/setrgid.c @@ -33,7 +33,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)setrgid.c 5.5 (Berkeley) 2/23/91";*/ -static char *rcsid = "$Id: setrgid.c,v 1.2 1996/03/25 21:22:10 tholo Exp $"; +static char *rcsid = "$Id: setrgid.c,v 1.3 1996/03/25 21:28:35 tholo Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -51,5 +51,5 @@ setrgid(rgid) gid_t rgid; #endif { - return (__setregid(rgid, -1)); + return (__setregid(rgid, (gid_t)-1)); } |