Module Name: src
Committed By: christos
Date: Sat Jan 9 01:25:10 UTC 2010
Modified Files:
src/libexec/tftpd: tftpd.c
Log Message:
newer versions of NetBSD turn on -Wsign-compare
To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 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.34 src/libexec/tftpd/tftpd.c:1.35
--- src/libexec/tftpd/tftpd.c:1.34 Fri Jan 8 18:27:08 2010
+++ src/libexec/tftpd/tftpd.c Fri Jan 8 20:25:09 2010
@@ -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");
}