Source-Changes-HG archive

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

[src/trunk]: src/libexec/tftpd newer versions of NetBSD turn on -Wsign-compare



details:   https://anonhg.NetBSD.org/src/rev/1893ac1b1154
branches:  trunk
changeset: 750637:1893ac1b1154
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 09 01:25:09 2010 +0000

description:
newer versions of NetBSD turn on -Wsign-compare

diffstat:

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

diffs (27 lines):

diff -r 9474b285c4b6 -r 1893ac1b1154 libexec/tftpd/tftpd.c
--- a/libexec/tftpd/tftpd.c     Sat Jan 09 01:24:18 2010 +0000
+++ b/libexec/tftpd/tftpd.c     Sat Jan 09 01:25:09 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tftpd.c,v 1.34 2010/01/08 23:27:08 wiz Exp $   */
+/*     $NetBSD: tftpd.c,v 1.35 2010/01/09 01:25:09 christos 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.34 2010/01/08 23:27:08 wiz Exp $");
+__RCSID("$NetBSD: tftpd.c,v 1.35 2010/01/09 01:25:09 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -1145,7 +1145,7 @@
                syslog(LOG_DEBUG, "Send NACK %s", tp->th_msg);
        length = strlen(tp->th_msg);
        msglen = &tp->th_msg[length + 1] - buf;
-       if (send(peer, buf, msglen, 0) != msglen)
+       if (send(peer, buf, msglen, 0) != (ssize_t)msglen)
                syslog(LOG_ERR, "nak: %m");
 }
 



Home | Main Index | Thread Index | Old Index