akosut      97/07/08 11:02:08

  Modified:    src       http_config.c
  Log:
  Fix add_module() so it works with modules dynamically loaded at runtime.
  
  Revision  Changes    Path
  1.57      +2 -5      apache/src/http_config.c
  
  Index: http_config.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/http_config.c,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -c -C3 -r1.56 -r1.57
  *** http_config.c     1997/07/08 02:04:41     1.56
  --- http_config.c     1997/07/08 18:02:07     1.57
  ***************
  *** 83,90 ****
     * of modules which control just about all of the server operation.
     */
    
  - /* num_modules is the number of currently active modules.  */
  - static int num_modules = 0;    
    /* total_modules is the number of modules linked in.  */
    static int total_modules = 0;
    module *top_module = NULL;
  --- 83,88 ----
  ***************
  *** 470,477 ****
        top_module = m;
        }
        if (m->module_index == -1) {
  !     m->module_index = num_modules++;
        }
        /** XXX: this will be slow if there's lots of add_modules */
        build_method_shortcuts ();
    }
  --- 468,476 ----
        top_module = m;
        }
        if (m->module_index == -1) {
  !     m->module_index = total_modules++;
        }
  + 
        /** XXX: this will be slow if there's lots of add_modules */
        build_method_shortcuts ();
    }
  ***************
  *** 539,546 ****
        *m = NULL;
        m = next_m;
        }
  - 
  -     num_modules = 0;
    
        /* This is required; so we add it always.  */
        add_named_module ("http_core.c");
  --- 538,543 ----
  
  
  

Reply via email to