You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/10/13 02:13:33 UTC

svn commit: r584345 - /apr/apr/trunk/test/sockperf.c

Author: wrowe
Date: Fri Oct 12 17:13:27 2007
New Revision: 584345

URL: http://svn.apache.org/viewvc?rev=584345&view=rev
Log:
Correct size elt and arguments

Modified:
    apr/apr/trunk/test/sockperf.c

Modified: apr/apr/trunk/test/sockperf.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/sockperf.c?rev=584345&r1=584344&r2=584345&view=diff
==============================================================================
--- apr/apr/trunk/test/sockperf.c (original)
+++ apr/apr/trunk/test/sockperf.c Fri Oct 12 17:13:27 2007
@@ -38,7 +38,7 @@
 
 struct testSet {
     char c;
-    int size;
+    apr_size_t size;
     int iters;
 } testRuns[] = {
     { 'a', 1, 3 },
@@ -75,7 +75,7 @@
 }
 
 static apr_status_t sendRecvBuffer(apr_time_t *t, const char *buf, 
-                                   int size, apr_pool_t *pool)
+                                   apr_size_t size, apr_pool_t *pool)
 {
     apr_socket_t *sock;
     apr_status_t rv;
@@ -175,7 +175,8 @@
 {
     char *buffer;
     apr_status_t rv;
-    int i, sz = ts->size * TEST_SIZE;
+    int i;
+    apr_size_t sz = ts->size * TEST_SIZE;
     
     buffer = apr_palloc(pool, sz);
     if (!buffer) {