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 sendfile.c
Date Mon, 15 Jan 2001 19:43:56 GMT
trawick     01/01/15 11:43:55

  Modified:    test     sendfile.c
  Log:
  Avoid some warnings on platforms where apr_size_t and/or apr_ssize_t
  aren't int (e.g., AIX).
  
  Revision  Changes    Path
  1.5       +5 -5      apr/test/sendfile.c
  
  Index: sendfile.c
  ===================================================================
  RCS file: /home/cvs/apr/test/sendfile.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- sendfile.c	2000/12/28 23:03:33	1.4
  +++ sendfile.c	2001/01/15 19:43:53	1.5
  @@ -324,7 +324,7 @@
           printf("apr_sendfile() updated len with %ld\n",
                  (long int)len);
           
  -        printf("bytes really sent: %d\n",
  +        printf("bytes really sent: %" APR_SIZE_T_FMT "\n",
                  expected_len);
   
           if (len != expected_len) {
  @@ -574,7 +574,7 @@
       if (memcmp(buf, HDR1, strlen(HDR1))) {
           fprintf(stderr, "wrong data read (2)\n");
           fprintf(stderr, "received: `%.*s'\nexpected: `%s'\n",
  -                bytes_read, buf, HDR1);
  +                (int)bytes_read, buf, HDR1);
           exit(1);
       }
           
  @@ -594,7 +594,7 @@
       if (memcmp(buf, HDR2, strlen(HDR2))) {
           fprintf(stderr, "wrong data read (4)\n");
           fprintf(stderr, "received: `%.*s'\nexpected: `%s'\n",
  -                bytes_read, buf, HDR2);
  +                (int)bytes_read, buf, HDR2);
           exit(1);
       }
   
  @@ -664,7 +664,7 @@
       if (memcmp(buf, TRL1, strlen(TRL1))) {
           fprintf(stderr, "wrong data read (6)\n");
           fprintf(stderr, "received: `%.*s'\nexpected: `%s'\n",
  -                bytes_read, buf, TRL1);
  +                (int)bytes_read, buf, TRL1);
           exit(1);
       }
           
  @@ -684,7 +684,7 @@
       if (memcmp(buf, TRL2, strlen(TRL2))) {
           fprintf(stderr, "wrong data read (8)\n");
           fprintf(stderr, "received: `%.*s'\nexpected: `%s'\n",
  -                bytes_read, buf, TRL2);
  +                (int)bytes_read, buf, TRL2);
           exit(1);
       }
   
  
  
  

Mime
View raw message