=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/chpass/field.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- src/usr.bin/chpass/field.c 2004/07/05 18:47:49 1.7 +++ src/usr.bin/chpass/field.c 2006/03/30 21:09:58 1.8 @@ -1,4 +1,4 @@ -/* $OpenBSD: field.c,v 1.7 2004/07/05 18:47:49 millert Exp $ */ +/* $OpenBSD: field.c,v 1.8 2006/03/30 21:09:58 robert Exp $ */ /* $NetBSD: field.c,v 1.3 1995/03/26 04:55:28 glass Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)field.c 8.4 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: field.c,v 1.7 2004/07/05 18:47:49 millert Exp $"; +static char rcsid[] = "$OpenBSD: field.c,v 1.8 2006/03/30 21:09:58 robert Exp $"; #endif #endif /* not lint */ @@ -111,7 +111,7 @@ warnx("empty uid field"); return (1); } - id = strtonum(p, 0, UID_MAX, &errstr); + id = (uid_t)strtonum(p, 0, UID_MAX, &errstr); if (errstr) { warnx("uid is %s", errstr); return (1); @@ -140,7 +140,7 @@ pw->pw_gid = gr->gr_gid; return (0); } - id = strtonum(p, 0, GID_MAX, &errstr); + id = (uid_t)strtonum(p, 0, GID_MAX, &errstr); if (errstr) { warnx("gid is %s", errstr); return (1);