summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2022-06-24 11:01:02 +0000
committerylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2022-06-24 11:01:02 +0000
commit8fa85b1ba7aa07032dbd8e26c8bf7734579f5a89 (patch)
tree9521678fb443a985b01b77a323eb3cd09636d13e
parentf7574506eea367251dd149c5117e7b9e2c6137bb (diff)
downloadlibapr-8fa85b1ba7aa07032dbd8e26c8bf7734579f5a89.tar.gz
Fix compiler warning.
* test/sockperf.c: Use apr_size_t instead of int. Merge r1902157 from trunk. Submitted by: ivan git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.8.x@1902224 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--test/sockperf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sockperf.c b/test/sockperf.c
index 28368efbc..b21becac2 100644
--- a/test/sockperf.c
+++ b/test/sockperf.c
@@ -49,7 +49,7 @@ struct testSet {
};
struct testResult {
- int size;
+ apr_size_t size;
int iters;
apr_time_t msecs[MAX_ITERS];
apr_time_t avg;
@@ -241,7 +241,7 @@ int main(int argc, char **argv)
for (i = 0; i < nTests; i++) {
int j;
apr_time_t totTime = 0;
- printf("%10d byte block:\n", results[i].size);
+ printf("%" APR_SIZE_T_FMT " byte block:\n", results[i].size);
printf("\t%2d iterations : ", results[i].iters);
for (j = 0; j < results[i].iters; j++) {
printf("%6" APR_TIME_T_FMT, results[i].msecs[j]);