httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apache-1.3/src/support ab.c
Date Tue, 11 Sep 2001 12:19:12 GMT
trawick     01/09/11 05:19:10

  Modified:    src/support ab.c
  Log:
  clean up some warnings in ab introduced in this release so that
  gcc compiles it cleanly with
  
    -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
  
  . make some qsort() comparison routines static so that no prototype
    is desired by gcc
  . get rid of unused function pipehandler()
  
  Revision  Changes    Path
  1.56      +7 -29     apache-1.3/src/support/ab.c
  
  Index: ab.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/support/ab.c,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- ab.c	2001/05/28 15:02:20	1.55
  +++ ab.c	2001/09/11 12:19:09	1.56
  @@ -460,7 +460,7 @@
   
   /* calculate and output results */
   
  -int compradre(struct data * a, struct data * b)
  +static int compradre(struct data * a, struct data * b)
   {
       if ((a->ctime) < (b->ctime))
   	return -1;
  @@ -469,7 +469,7 @@
       return 0;
   }
   
  -int comprando(struct data * a, struct data * b)
  +static int comprando(struct data * a, struct data * b)
   {
       if ((a->time) < (b->time))
   	return -1;
  @@ -478,7 +478,7 @@
       return 0;
   }
   
  -int compri(struct data * a, struct data * b)
  +static int compri(struct data * a, struct data * b)
   {
       int p = a->time - a->ctime;
       int q = b->time - b->ctime;
  @@ -489,7 +489,7 @@
       return 0;
   }
   
  -int compwait(struct data * a, struct data * b)
  +static int compwait(struct data * a, struct data * b)
   {
       if ((a->waittime) < (b->waittime))
   	return -1;
  @@ -1166,28 +1166,6 @@
   
   /* --------------------------------------------------------- */
   
  -/* Catch SIGPIPE signals */
  -
  -void pipehandler(int signal)
  -{
  -    int i;			/* loop variable */
  -
  -    printf("Caught broken pipe signal after %ld requests. ", done);
  -
  -    /* This means one of my connections is broken, but which one? */
  -    /* The safe route: close all our connections. */
  -    for (i = 0; i < concurrency; i++)
  -	close_connection(&con[i]);
  -
  -    /* And start them back up */
  -    for (i = 0; i < concurrency; i++)
  -	start_connect(&con[i]);
  -
  -    printf("Continuing...\n");
  -}
  -
  -/* --------------------------------------------------------- */
  -
   /* run the tests */
   
   static void test(void)
  @@ -1356,14 +1334,14 @@
   static void copyright(void)
   {
       if (!use_html) {
  -	printf("This is ApacheBench, Version %s\n", VERSION " <$Revision: 1.55 $> apache-1.3");
  +	printf("This is ApacheBench, Version %s\n", VERSION " <$Revision: 1.56 $> apache-1.3");
   	printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n");
   	printf("Copyright (c) 1998-2001 The Apache Group, http://www.apache.org/\n");
   	printf("\n");
       }
       else {
   	printf("<p>\n");
  -	printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-1.3<br>\n",
VERSION, "$Revision: 1.55 $");
  +	printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-1.3<br>\n",
VERSION, "$Revision: 1.56 $");
   	printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br>\n");
   	printf(" Copyright (c) 1998-2001 The Apache Group, http://www.apache.org/<br>\n");
   	printf("</p>\n<p>\n");
  @@ -1682,7 +1660,7 @@
   	exit(1);
       }
   #endif
  -    signal(SIGPIPE, SIG_IGN);	/* Ignore writes to connections that
  +    signal(SIGPIPE, SIG_IGN);           /* Ignore writes to connections that
   					 * have been closed at the other end.
   					 * These writes are dealt with in the
   					 * s_write() function. */
  
  
  

Mime
View raw message