Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/tftpd fix build



details:   https://anonhg.NetBSD.org/src/rev/09fe489cab18
branches:  trunk
changeset: 750645:09fe489cab18
user:      mbalmer <mbalmer%NetBSD.org@localhost>
date:      Sat Jan 09 10:46:31 2010 +0000

description:
fix build

diffstat:

 libexec/tftpd/tftpd.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 27f3e9ec2d3e -r 09fe489cab18 libexec/tftpd/tftpd.c
--- a/libexec/tftpd/tftpd.c     Sat Jan 09 10:43:11 2010 +0000
+++ b/libexec/tftpd/tftpd.c     Sat Jan 09 10:46:31 2010 +0000
@@ -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);
                        }



Home | Main Index | Thread Index | Old Index