diff options
author | ivan <ivan@13f79535-47bb-0310-9956-ffa450edef68> | 2022-06-21 23:02:15 +0000 |
---|---|---|
committer | ivan <ivan@13f79535-47bb-0310-9956-ffa450edef68> | 2022-06-21 23:02:15 +0000 |
commit | 5f6937ae49931237cf9486ce2abec4aee6057070 (patch) | |
tree | 4b6866c38ee637c0cd0ec072482151f5b33a6486 | |
parent | 42baa5c94c19192516fbea020d26d76289fdcb3a (diff) | |
download | libapr-5f6937ae49931237cf9486ce2abec4aee6057070.tar.gz |
Fix compiler warning.
* test/sockperf.c: Use apr_size_t instead of int.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902157 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | test/sockperf.c | 4 |
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]); |