pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/benchmarks/netio Fix compile warnings with GCC 4.x by ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bbe264a29e82
branches:  trunk
changeset: 515469:bbe264a29e82
user:      tron <tron%pkgsrc.org@localhost>
date:      Sun Jul 02 15:11:44 2006 +0000

description:
Fix compile warnings with GCC 4.x by using "socklen_t" were appropriate.

diffstat:

 benchmarks/netio/distinfo         |   3 +-
 benchmarks/netio/patches/patch-aa |  41 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 1 deletions(-)

diffs (56 lines):

diff -r 3fba0b02009c -r bbe264a29e82 benchmarks/netio/distinfo
--- a/benchmarks/netio/distinfo Sun Jul 02 15:04:15 2006 +0000
+++ b/benchmarks/netio/distinfo Sun Jul 02 15:11:44 2006 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.9 2006/07/02 15:02:59 tron Exp $
+$NetBSD: distinfo,v 1.10 2006/07/02 15:11:44 tron Exp $
 
 SHA1 (netio126.zip) = ef63e9b0564445a1831b53be98a5472dbceaa922
 RMD160 (netio126.zip) = bff92f25df1df87c7075432b1da3e0f7defe1e30
 Size (netio126.zip) = 140402 bytes
+SHA1 (patch-aa) = 194bb630fd09f2cc5c8a6842212eb01adb676584
diff -r 3fba0b02009c -r bbe264a29e82 benchmarks/netio/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/benchmarks/netio/patches/patch-aa Sun Jul 02 15:11:44 2006 +0000
@@ -0,0 +1,41 @@
+$NetBSD: patch-aa,v 1.6 2006/07/02 15:12:52 tron Exp $
+
+--- netio.c.orig       2005-08-30 16:47:18.000000000 +0100
++++ netio.c    2006-07-02 16:08:52.000000000 +0100
+@@ -796,7 +796,7 @@
+   long long nData;
+   struct sockaddr_in sa_server, sa_client;
+   int server, client;
+-  size_t length;
++  socklen_t length;
+   struct timeval tv;
+   fd_set fds;
+   int rc;
+@@ -1123,7 +1123,7 @@
+   char *cBuffer;
+   struct sockaddr_in sa_server, sa_client;
+   int rc;
+-  size_t nBytes;
++  socklen_t nBytes;
+ 
+   if ((cBuffer = InitBuffer(TMAXSIZE)) == NULL)
+   {
+@@ -1187,6 +1187,7 @@
+   fd_set fds;
+   int rc, nByte;
+   size_t nLength;
++  socklen_t sLength;
+ 
+   if ((cBuffer = InitBuffer(TMAXSIZE)) == NULL)
+   {
+@@ -1242,8 +1243,8 @@
+     if (rc == 0 || FD_ISSET(server, &fds) == 0)
+       continue;
+ 
+-    nLength = sizeof(sa_client);
+-    if ((client = accept(server, (struct sockaddr *) &sa_client, &nLength)) == -1)
++    sLength = sizeof(sa_client);
++    if ((client = accept(server, (struct sockaddr *) &sa_client, &sLength)) == -1)
+       continue;
+ 
+     setsockopt(client, SOL_SOCKET, SO_RCVBUF, (char *) &sobufsize, sizeof(sobufsize));



Home | Main Index | Thread Index | Old Index