Module Name: src Committed By: mbalmer Date: Sat Jan 9 10:46:31 UTC 2010
Modified Files: src/libexec/tftpd: tftpd.c Log Message: fix build To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/libexec/tftpd/tftpd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/libexec/tftpd/tftpd.c diff -u src/libexec/tftpd/tftpd.c:1.35 src/libexec/tftpd/tftpd.c:1.36 --- src/libexec/tftpd/tftpd.c:1.35 Sat Jan 9 01:25:09 2010 +++ src/libexec/tftpd/tftpd.c Sat Jan 9 10:46:31 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: tftpd.c,v 1.35 2010/01/09 01:25:09 christos Exp $ */ +/* $NetBSD: tftpd.c,v 1.36 2010/01/09 10:46:31 mbalmer Exp $ */ /* * Copyright (c) 1983, 1993 @@ -36,7 +36,7 @@ #if 0 static char sccsid[] = "@(#)tftpd.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: tftpd.c,v 1.35 2010/01/09 01:25:09 christos Exp $"); +__RCSID("$NetBSD: tftpd.c,v 1.36 2010/01/09 10:46:31 mbalmer Exp $"); #endif #endif /* not lint */ @@ -228,7 +228,7 @@ nid = (strtol(tgtuser, &ep, 10)); if (*ep == '\0') { - if (nid > UID_MAX) { + if ((uid_t)nid > UID_MAX) { syslog(LOG_ERR, "uid %ld is too large", nid); exit(1); } @@ -245,7 +245,7 @@ if (tgtgroup != NULL) { nid = (strtol(tgtgroup, &ep, 10)); if (*ep == '\0') { - if (nid > GID_MAX) { + if ((uid_t)nid > GID_MAX) { syslog(LOG_ERR, "gid %ld is too large", nid); exit(1); }