Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/net/rumptest fix sign-compare warnings
details: https://anonhg.NetBSD.org/src/rev/1bcd4a4cee81
branches: trunk
changeset: 748306:1bcd4a4cee81
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Oct 20 00:25:26 2009 +0000
description:
fix sign-compare warnings
diffstat:
sys/rump/net/rumptest/rumptest_net.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c51ceb554b23 -r 1bcd4a4cee81 sys/rump/net/rumptest/rumptest_net.c
--- a/sys/rump/net/rumptest/rumptest_net.c Mon Oct 19 23:29:40 2009 +0000
+++ b/sys/rump/net/rumptest/rumptest_net.c Tue Oct 20 00:25:26 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumptest_net.c,v 1.11 2009/10/14 19:14:39 pooka Exp $ */
+/* $NetBSD: rumptest_net.c,v 1.12 2009/10/20 00:25:26 pooka Exp $ */
/*
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
@@ -75,7 +75,7 @@
struct sockaddr_in *sin;
struct sockaddr_in sinstore;
struct ifaliasreq ia;
- size_t len;
+ ssize_t len;
struct {
struct rt_msghdr m_rtm;
uint8_t m_space;
@@ -203,7 +203,7 @@
strcpy(buf, "GET / HTTP/1.0\n\n");
n = rump_sys_write(s, buf, strlen(buf));
- if (n != strlen(buf))
+ if (n != (ssize_t)strlen(buf))
err(1, "wrote only %zd vs. %zu\n",
n, strlen(buf));
Home |
Main Index |
Thread Index |
Old Index