tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_worker_status.c
Date Sat, 15 Mar 2003 11:19:07 GMT
mturk       2003/03/15 03:19:07

  Modified:    jk/native2/common jk_worker_status.c
  Log:
  use the srrchr instead of
  rindex -> costin -> rindex ;-)
  
  Revision  Changes    Path
  1.41      +6 -6      jakarta-tomcat-connectors/jk/native2/common/jk_worker_status.c
  
  Index: jk_worker_status.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_worker_status.c,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- jk_worker_status.c	6 Mar 2003 15:15:04 -0000	1.40
  +++ jk_worker_status.c	15 Mar 2003 11:19:07 -0000	1.41
  @@ -254,7 +254,7 @@
               for( j=0; j<slot->structCnt ; j++ ) {
                   jk_stat_t *statArray=(jk_stat_t *)data;
                   jk_stat_t *stat=statArray + j;
  -				
  +                
                   jk2_worker_status_displayStat( env, s, stat,
                                                  &totalReq, &totalErr, &totalTime,
&maxTime);
               }
  @@ -511,7 +511,7 @@
               /* XXX Add info about number of slots */
               for( j=0; j<slot->structCnt ; j++ ) {
                   jk_stat_t *statArray=(jk_stat_t *)data;
  -				
  +                
                   jk_stat_t *stat=statArray + j;
                   s->jkprintf(env, s, "[endpoint:%s%d]\n", name, j);
               
  @@ -710,7 +710,7 @@
                                              jk_ws_service_t *s)
   {
       char *cName=s->query_string + 4;
  -    char *attName=rindex(cName, '|' );
  +    char *attName=strrchr(cName, '|' );
       int i;
       
       if( attName == NULL ) {
  @@ -744,7 +744,7 @@
                                              jk_ws_service_t *s)
   {
       char *cName=s->query_string + 4;
  -    char *attVal=rindex(cName, '|' );
  +    char *attVal=strrchr(cName, '|' );
       char *attName;
       int i;
       
  @@ -755,7 +755,7 @@
       *attVal='\0';
       attVal++;
       
  -    attName=rindex( cName, '|' );
  +    attName=strrchr( cName, '|' );
       if( attName == NULL ) {
           s->jkprintf( env, s, "ERROR: attribute name not found\n", cName);
           return JK_OK;
  @@ -814,7 +814,7 @@
       char *attName;
       int i;
       
  -    attName=rindex( cName, '|' );
  +    attName=strrchr( cName, '|' );
       if( attName == NULL ) {
           s->jkprintf( env, s, "ERROR: attribute name not found\n", cName);
           return JK_OK;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message