httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: apache-1.3/src/os/netware mod_log_nw.c
Date Tue, 02 Apr 2002 16:51:02 GMT
bnicholes    02/04/02 08:51:01

  Modified:    src/os/netware mod_log_nw.c
  Log:
  Removed the NetWare #ifdef's since it is a NetWare module anyway
  Submitted by: Guenter Knauf
  
  Revision  Changes    Path
  1.3       +0 -18     apache-1.3/src/os/netware/mod_log_nw.c
  
  Index: mod_log_nw.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/os/netware/mod_log_nw.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- mod_log_nw.c	13 Mar 2002 21:05:36 -0000	1.2
  +++ mod_log_nw.c	2 Apr 2002 16:51:01 -0000	1.3
  @@ -231,10 +231,8 @@
       array_header *config_logs;
       array_header *server_config_logs;
       table *formats;
  -#ifdef NETWARE
       int rotatedaily;
       int rotateinterval;
  -#endif
   } multi_log_state;
   
   /*
  @@ -256,9 +254,7 @@
       int outcnt;
       char outbuf[LOG_BUFSIZE];
   #endif
  -#ifdef NETWARE
       time_t time_jump;
  -#endif
   } config_log_state;
   
   /*
  @@ -810,7 +806,6 @@
       int len = 0;
       array_header *format;
       char *envar;
  -#ifdef NETWARE
       int log_fd;
   
       multi_log_state *mls = ap_get_module_config(r->server->module_config,&config_log_module);
  @@ -844,7 +839,6 @@
               close (log_fd);
           }
       }
  -#endif
   
       if (cls->fname == NULL) {
           return DECLINED;
  @@ -969,10 +963,8 @@
       mls->server_config_logs = NULL;
       mls->formats = ap_make_table(p, 4);
       ap_table_setn(mls->formats, "CLF", DEFAULT_LOG_FORMAT);
  -#ifdef NETWARE
       mls->rotatedaily = 0;
       mls->rotateinterval = 0;
  -#endif
   
       return mls;
   }
  @@ -988,14 +980,12 @@
       multi_log_state *base = (multi_log_state *) basev;
       multi_log_state *add = (multi_log_state *) addv;
   
  -#ifdef NETWARE
       if (add->rotatedaily==0) {
         add->rotatedaily=base->rotatedaily;
       }
       if (add->rotateinterval==0) {
         add->rotateinterval=base->rotateinterval;
       }
  -#endif
   
       add->server_config_logs = base->config_logs;
       if (!add->default_format) {
  @@ -1080,7 +1070,6 @@
       return add_custom_log(cmd, dummy, fn, "%{Cookie}n \"%r\" %t", NULL);
   }
   
  -#ifdef NETWARE
   static const char *set_rotate_log_daily(cmd_parms *cmd, void *dummy, int arg)
   {
       multi_log_state *mls = ap_get_module_config(cmd->server->module_config,
  @@ -1108,7 +1097,6 @@
       mls->rotateinterval = interval;
       return NULL;
   }
  -#endif
   
   static const command_rec config_log_cmds[] =
   {
  @@ -1121,12 +1109,10 @@
        "a log format string (see docs) and an optional format name"},
       {"CookieLog", set_cookie_log, NULL, RSRC_CONF, TAKE1,
        "the filename of the cookie log"},
  -#ifdef NETWARE
       {"LogRotateDaily", set_rotate_log_daily, NULL, RSRC_CONF, FLAG,
        "rotate logs daily (On:Off)"},
       {"LogRotateInterval", set_rotate_log_interval, NULL, RSRC_CONF, TAKE1,
        "rotate logs every NNN minutes"},
  -#endif
       {NULL}
   };
   
  @@ -1152,7 +1138,6 @@
           cls->log_fd = ap_piped_log_write_fd(pl);
       }
       else {
  -#ifdef NETWARE
           char * fname;
           struct tm *time_tmp;
           time_t time_now;
  @@ -1175,9 +1160,6 @@
               } else {
                   fname = ap_server_root_relative(p, cls->fname);
           }
  -#else
  -        char *fname = ap_server_root_relative(p, cls->fname);
  -#endif
               
           if ((cls->log_fd = ap_popenf(p, fname, xfer_flags, xfer_mode)) < 0) {
               ap_log_error(APLOG_MARK, APLOG_ERR, s,
  
  
  

Mime
View raw message