apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r584345 - /apr/apr/trunk/test/sockperf.c
Date Sat, 13 Oct 2007 00:13:33 GMT
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) {



Mime
View raw message