tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_endpoint.c jk_logger_file.c
Date Thu, 25 Apr 2002 18:50:22 GMT
costin      02/04/25 11:50:22

  Modified:    jk/native2/common jk_endpoint.c jk_logger_file.c
  Log:
  Update return codes.
  
  Revision  Changes    Path
  1.8       +2 -2      jakarta-tomcat-connectors/jk/native2/common/jk_endpoint.c
  
  Index: jk_endpoint.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_endpoint.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- jk_endpoint.c	12 Apr 2002 21:49:03 -0000	1.7
  +++ jk_endpoint.c	25 Apr 2002 18:50:22 -0000	1.8
  @@ -97,7 +97,7 @@
       if (e==NULL) {
           env->l->jkLog(env, env->l, JK_LOG_ERROR,
                         "endpoint.factory() OutOfMemoryException\n");
  -        return JK_FALSE;
  +        return JK_ERR;
       }
       
       e->pool = endpointPool;
  @@ -121,5 +121,5 @@
       result->object = e;
       e->mbean=result;
   
  -    return JK_TRUE;
  +    return JK_OK;
   }
  
  
  
  1.20      +10 -10    jakarta-tomcat-connectors/jk/native2/common/jk_logger_file.c
  
  Index: jk_logger_file.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_logger_file.c,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- jk_logger_file.c	24 Apr 2002 23:12:50 -0000	1.19
  +++ jk_logger_file.c	25 Apr 2002 18:50:22 -0000	1.20
  @@ -59,7 +59,7 @@
    * Description: Utility functions (mainly configuration)                   *
    * Author:      Gal Shachor <shachor@il.ibm.com>                           *
    * Author:      Henri Gomez <hgomez@slib.fr>                               *
  - * Version:     $Revision: 1.19 $                                           *
  + * Version:     $Revision: 1.20 $                                           *
    ***************************************************************************/
   
   #include "jk_env.h"
  @@ -107,7 +107,7 @@
           /* This is usefull to debug what happens before logger is set.
              On apache you need -X option ( no detach, single process ) */
           printf("%s", what );
  -        return JK_TRUE;
  +        return JK_OK;
       }
       if(l && l->level <= level && l->logger_private &&
what) {       
           unsigned sz = strlen(what);
  @@ -117,10 +117,10 @@
               fflush(f);
           }
   
  -        return JK_TRUE;
  +        return JK_OK;
       }
   
  -    return JK_FALSE;
  +    return JK_ERR;
   }
   
   int jk2_logger_file_parseLogLevel(jk_env_t *env, const char *level)
  @@ -160,7 +160,7 @@
       if(f==NULL) {
           _this->jkLog(env, _this,JK_LOG_ERROR,
                        "Can't open log file %s\n", _this->name );
  -        return JK_FALSE;
  +        return JK_ERR;
       }
       _this->jkLog(env, _this,JK_LOG_ERROR,
                    "Initializing log file %s\n", _this->name );
  @@ -168,20 +168,20 @@
       if( oldF!=NULL ) {
           fclose( oldF );
       }
  -    return JK_TRUE;
  +    return JK_OK;
   }
   
   static int jk2_logger_file_close(jk_env_t *env,jk_logger_t *_this)
   {
       FILE *f = _this->logger_private;
  -    if( f==NULL ) return JK_TRUE;
  +    if( f==NULL ) return JK_OK;
       
       fflush(f);
       fclose(f);
       _this->logger_private=NULL;
   
       /*     free(_this); */
  -    return JK_TRUE;
  +    return JK_OK;
   }
   
   static int JK_METHOD
  @@ -307,7 +307,7 @@
       jk_logger_t *l = (jk_logger_t *)pool->alloc(env, pool, sizeof(jk_logger_t));
   
       if(l==NULL ) {
  -        return JK_FALSE;
  +        return JK_ERR;
       }
   
       l->log = jk2_logger_file_log;
  @@ -323,6 +323,6 @@
       l->mbean=result;
       result->setAttribute = jk2_logger_file_setProperty;
   
  -    return JK_TRUE;
  +    return JK_OK;
   }
   
  
  
  

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


Mime
View raw message