tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hgo...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_worker_status.c
Date Wed, 17 Mar 2004 17:16:25 GMT
hgomez      2004/03/17 09:16:25

  Modified:    jk/native2/common jk_worker_status.c
  Log:
  Remove unused vars
  
  Revision  Changes    Path
  1.59      +1 -20     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.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- jk_worker_status.c	16 Mar 2004 08:47:25 -0000	1.58
  +++ jk_worker_status.c	17 Mar 2004 17:16:25 -0000	1.59
  @@ -137,7 +137,6 @@
       s->jkprintf(env, s, "<th>ReqStart</th><th>+jk</th><th>+end</th>"
);
   
       for( i=0; i < env->_objects->size( env, env->_objects ); i++ ) {
  -        char *name=env->_objects->nameAt( env, env->_objects, i );
           jk_bean_t *mbean=env->_objects->valueAt( env, env->_objects, i );
           jk_endpoint_t *ep;
   
  @@ -166,14 +165,12 @@
   static void jk2_worker_status_displayScoreboardInfo(jk_env_t *env, jk_ws_service_t *s,
                                                       jk_workerEnv_t *wenv)
   {
  -    jk_map_t *map=wenv->initData;
       int i;
       int j;
       int totalReq=0;
       int totalErr=0;
       unsigned long totalTime=0;
       unsigned long maxTime=0;
  -    int needHeader=JK_TRUE;
       
       if( wenv->shm==NULL || wenv->shm->head==NULL) {
           s->jkprintf(env, s, "<h3>No Scoreboard available</h3>\n"); 
  @@ -228,7 +225,6 @@
   static void jk2_worker_status_displayRuntimeType(jk_env_t *env, jk_ws_service_t *s,
                                                    jk_workerEnv_t *wenv, char *type)
   {
  -    jk_map_t *map=wenv->initData;
       int i;
       int needHeader=JK_TRUE;
       int typeLen=strlen( type );
  @@ -389,14 +385,8 @@
   static void jk2_worker_status_lstEndpoints(jk_env_t *env, jk_ws_service_t *s,
                                              jk_workerEnv_t *wenv)
   {
  -    jk_map_t *map=wenv->initData;
       int i;
       int j;
  -    int totalReq=0;
  -    int totalErr=0;
  -    unsigned long totalTime=0;
  -    unsigned long maxTime=0;
  -    int needHeader=JK_TRUE;
       
       if( wenv->shm==NULL || wenv->shm->head==NULL) {
           return;
  @@ -414,7 +404,6 @@
   
               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 );
                   s->jkprintf(env, s, "T=endpoint\n" );
  @@ -441,14 +430,8 @@
   static void jk2_worker_status_dmpEndpoints(jk_env_t *env, jk_ws_service_t *s,
                                              jk_workerEnv_t *wenv)
   {
  -    jk_map_t *map=wenv->initData;
       int i;
       int j;
  -    int totalReq=0;
  -    int totalErr=0;
  -    unsigned long totalTime=0;
  -    unsigned long maxTime=0;
  -    int needHeader=JK_TRUE;
   
       if( wenv->shm==NULL || wenv->shm->head==NULL) {
           return;
  @@ -523,7 +506,6 @@
           char *name=env->_objects->nameAt( env, env->_objects, i );
           jk_bean_t *mbean=env->_objects->valueAt( env, env->_objects, i );
           char **getAtt=mbean->getAttributeInfo;
  -        char **setAtt=mbean->setAttributeInfo;
           
           /* That's a bad name, created for backward compat. It should be deprecated.. */
           if( strchr( name, ':' )==NULL )
  @@ -690,7 +672,6 @@
           char *name=env->_objects->nameAt( env, env->_objects, i );
           jk_bean_t *mbean=env->_objects->valueAt( env, env->_objects, i );
           char **getAtt=mbean->getAttributeInfo;
  -        char **setAtt=mbean->setAttributeInfo;
           int j,k;
           
           /* That's a bad name, created for backward compat. It should be deprecated.. */
  @@ -898,7 +879,7 @@
       for( i=0; i < env->_objects->size( env, env->_objects ); i++ ) {
           char *name=env->_objects->nameAt( env, env->_objects, i );
           jk_bean_t *mbean=env->_objects->valueAt( env, env->_objects, i );
  -        int res;
  +        int res = 0;
           
           if( mbean==NULL ) 
               continue;
  
  
  

---------------------------------------------------------------------
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