You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by yl...@apache.org on 2022/06/24 11:01:02 UTC
svn commit: r1902224 - in /apr/apr/branches/1.8.x: ./ test/sockperf.c
Author: ylavic
Date: Fri Jun 24 11:01:02 2022
New Revision: 1902224
URL: http://svn.apache.org/viewvc?rev=1902224&view=rev
Log:
Fix compiler warning.
* test/sockperf.c: Use apr_size_t instead of int.
Merge r1902157 from trunk.
Submitted by: ivan
Modified:
apr/apr/branches/1.8.x/ (props changed)
apr/apr/branches/1.8.x/test/sockperf.c
Propchange: apr/apr/branches/1.8.x/
------------------------------------------------------------------------------
Merged /apr/apr/trunk:r1902157
Modified: apr/apr/branches/1.8.x/test/sockperf.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.8.x/test/sockperf.c?rev=1902224&r1=1902223&r2=1902224&view=diff
==============================================================================
--- apr/apr/branches/1.8.x/test/sockperf.c (original)
+++ apr/apr/branches/1.8.x/test/sockperf.c Fri Jun 24 11:01:02 2022
@@ -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]);