#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>
gid_t rgid;
#endif
{
- return (__setregid(rgid, -1));
+ return (__setregid(rgid, (gid_t)-1));
}
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)setruid.c 5.5 (Berkeley) 2/23/91";*/
-static char *rcsid = "$Id: setruid.c,v 1.2 1996/03/25 21:22:11 tholo Exp $";
+static char *rcsid = "$Id: setruid.c,v 1.3 1996/03/25 21:28:36 tholo Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
uid_t ruid;
#endif
{
- return (__setreuid(ruid, -1));
+ return (__setreuid(ruid, (uid_t)-1));
}