apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/test testfile.c
Date Mon, 15 Jan 2001 19:19:26 GMT
trawick     01/01/15 11:19:26

  Modified:    test     testfile.c
  Log:
  Use APR_SIZE_T_FMT instead of %d when formatting an apr_size_t.  This avoids
  a warning on AIX and other platforms where apr_size_t is long int.
  
  Revision  Changes    Path
  1.24      +1 -1      apr/test/testfile.c
  
  Index: testfile.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testfile.c,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- testfile.c	2001/01/08 23:48:45	1.23
  +++ testfile.c	2001/01/15 19:19:24	1.24
  @@ -359,7 +359,7 @@
       fprintf(stdout, "\t\tFile size.......");
       apr_dir_entry_size(&bytes, temp);
       if (bytes != strlen("Another test!!!")) {
  -        fprintf(stderr, "Got wrong file size %d\n", bytes);
  +        fprintf(stderr, "Got wrong file size %" APR_SIZE_T_FMT "\n", bytes);
           return -1;
       }
       fprintf(stdout, "OK\n");
  
  
  

Mime
View raw message