summaryrefslogtreecommitdiff
path: root/libexec/tftpd/tftpd.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2010-01-09 01:25:09 +0000
committerchristos <christos@NetBSD.org>2010-01-09 01:25:09 +0000
commit77c1fa357d72eb47c869264e6a0a9501a6ccb524 (patch)
tree0ac3463c2038f61d197476ad2bfccba44a5288ae /libexec/tftpd/tftpd.c
parent0ec6aab4dd7bdae097337887c24eaa87ab244c9a (diff)
newer versions of NetBSD turn on -Wsign-compare
Diffstat (limited to 'libexec/tftpd/tftpd.c')
-rw-r--r--libexec/tftpd/tftpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c
index b62a958f372..26c236b01e1 100644
--- a/libexec/tftpd/tftpd.c
+++ b/libexec/tftpd/tftpd.c
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\
#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 @@ nak(int error)
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");
}