explicitly coerce a -1 to gid_t to quiet lint.

This commit is contained in:
perry 1998-02-25 22:53:03 +00:00
parent a70b79d19e
commit 35219be440

View File

@ -1,4 +1,4 @@
/* $NetBSD: setrgid.c,v 1.9 1998/02/02 06:26:40 perry Exp $ */
/* $NetBSD: setrgid.c,v 1.10 1998/02/25 22:53:03 perry Exp $ */
/*
* Copyright (c) 1983, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)setrgid.c 8.1 (Berkeley) 6/2/93";
#else
__RCSID("$NetBSD: setrgid.c,v 1.9 1998/02/02 06:26:40 perry Exp $");
__RCSID("$NetBSD: setrgid.c,v 1.10 1998/02/25 22:53:03 perry Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -55,5 +55,5 @@ setrgid(rgid)
int rgid;
#endif
{
return (setregid(rgid, -1));
return (setregid(rgid, (gid_t)-1));
}