Module Name: src
Committed By: pooka
Date: Thu Aug 26 17:24:15 UTC 2010
Modified Files:
src/tests/net/icmp: t_ping.c
Log Message:
setsockopt() wants int instead of size_t. Should fix this on LP64.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/net/icmp/t_ping.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/net/icmp/t_ping.c
diff -u src/tests/net/icmp/t_ping.c:1.7 src/tests/net/icmp/t_ping.c:1.8
--- src/tests/net/icmp/t_ping.c:1.7 Mon Aug 23 10:49:27 2010
+++ src/tests/net/icmp/t_ping.c Thu Aug 26 17:24:14 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ping.c,v 1.7 2010/08/23 10:49:27 pooka Exp $ */
+/* $NetBSD: t_ping.c,v 1.8 2010/08/26 17:24:14 pooka Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: t_ping.c,v 1.7 2010/08/23 10:49:27 pooka Exp $");
+__RCSID("$NetBSD: t_ping.c,v 1.8 2010/08/26 17:24:14 pooka Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -129,7 +129,7 @@
}
static int
-doping(const char *target, int loops, size_t pktsize)
+doping(const char *target, int loops, int pktsize)
{
char sndbuf[IP_MAXPACKET - sizeof(struct ip)];
char recvbuf[IP_MAXPACKET];