From 8888c5de4c415b857f260212229893f3605b9097 Mon Sep 17 00:00:00 2001 From: David Nugent Date: Sat, 15 Jan 2000 00:20:22 +0000 Subject: Portability fixes for other bsd4.4 derivatives. --- pw/pw_group.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pw/pw_group.c') diff --git a/pw/pw_group.c b/pw/pw_group.c index d489a6b..6042a68 100644 --- a/pw/pw_group.c +++ b/pw/pw_group.c @@ -123,7 +123,7 @@ pw_group(struct userconf * cnf, int mode, struct cargs * args) if (rc == -1) err(EX_IOERR, "group '%s' not available (NIS?)", grp->gr_name); else if (rc != 0) { - warnc(rc, "group update"); + warn("group update"); return EX_IOERR; } pw_log(cnf, mode, W_GROUP, "%s(%ld) removed", a_name->val, (long) gid); @@ -249,7 +249,7 @@ pw_group(struct userconf * cnf, int mode, struct cargs * args) if (rc == -1) warnx("group '%s' not available (NIS?)", grp->gr_name); else - warnc(rc, "group update"); + warn("group update"); return EX_IOERR; } /* grp may have been invalidated */ @@ -299,7 +299,8 @@ gr_gidpolicy(struct userconf * cnf, struct cargs * args) */ SETGRENT(); while ((grp = GETGRENT()) != NULL) - if (grp->gr_gid >= (int) cnf->min_gid && grp->gr_gid <= (int) cnf->max_gid) + if ((gid_t)grp->gr_gid >= (gid_t)cnf->min_gid && + (gid_t)grp->gr_gid <= (gid_t)cnf->max_gid) bm_setbit(&bm, grp->gr_gid - cnf->min_gid); ENDGRENT(); -- cgit v1.2.3