You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2001/11/12 02:21:21 UTC

cvs commit: httpd-2.0/support ab.c

trawick     01/11/11 17:21:21

  Modified:    support  ab.c
  Log:
  clean up some warnings on AIX
  
  since apr_size_t isn't always int, we should use
  APR_SIZE_T_FMT instead of %d
  
  Revision  Changes    Path
  1.84      +4 -4      httpd-2.0/support/ab.c
  
  Index: ab.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/support/ab.c,v
  retrieving revision 1.83
  retrieving revision 1.84
  diff -u -r1.83 -r1.84
  --- ab.c	2001/10/17 13:42:22	1.83
  +++ ab.c	2001/11/12 01:21:21	1.84
  @@ -473,7 +473,7 @@
       printf("Server Port:            %hd\n", port);
       printf("\n");
       printf("Document Path:          %s\n", path);
  -    printf("Document Length:        %d bytes\n", doclen);
  +    printf("Document Length:        %" APR_SIZE_T_FMT " bytes\n", doclen);
       printf("\n");
       printf("Concurrency Level:      %d\n", concurrency);
       printf("Time taken for tests:   %ld.%03ld seconds\n",
  @@ -731,7 +731,7 @@
   	   "<td colspan=2 %s>%s</td></tr>\n",
   	   trstring, tdstring, tdstring, path);
       printf("<tr %s><th colspan=2 %s>Document Length:</th>"
  -	   "<td colspan=2 %s>%d bytes</td></tr>\n",
  +	   "<td colspan=2 %s>%" APR_SIZE_T_FMT " bytes</td></tr>\n",
   	   trstring, tdstring, tdstring, doclen);
       printf("<tr %s><th colspan=2 %s>Concurrency Level:</th>"
   	   "<td colspan=2 %s>%d</td></tr>\n",
  @@ -1302,14 +1302,14 @@
   static void copyright(void)
   {
       if (!use_html) {
  -	printf("This is ApacheBench, Version %s\n", AP_SERVER_BASEREVISION " <$Revision: 1.83 $> apache-2.0");
  +	printf("This is ApacheBench, Version %s\n", AP_SERVER_BASEREVISION " <$Revision: 1.84 $> apache-2.0");
   	printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n");
   	printf("Copyright (c) 1998-2001 The Apache Software Foundation, http://www.apache.org/\n");
   	printf("\n");
       }
       else {
   	printf("<p>\n");
  -	printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-2.0<br>\n", AP_SERVER_BASEREVISION, "$Revision: 1.83 $");
  +	printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-2.0<br>\n", AP_SERVER_BASEREVISION, "$Revision: 1.84 $");
   	printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br>\n");
   	printf(" Copyright (c) 1998-2001 The Apache Software Foundation, http://www.apache.org/<br>\n");
   	printf("</p>\n<p>\n");