httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/modules/standard mod_info.c
Date Wed, 20 Sep 2000 14:11:25 GMT
trawick     00/09/20 07:11:23

  Modified:    src/modules/standard mod_info.c
  Log:
  Fix parameter list to ap_pcfg_openfile().
  
  (No, this doesn't get mod_info to compile...  No, I'm not working
  on mod_info...  I happened to notice the bad call so I fixed it.)
  
  Revision  Changes    Path
  1.14      +4 -3      apache-2.0/src/modules/standard/mod_info.c
  
  Index: mod_info.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_info.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- mod_info.c	2000/08/02 05:27:16	1.13
  +++ mod_info.c	2000/09/20 14:11:22	1.14
  @@ -169,10 +169,11 @@
       configfile_t *fp;
       info_cfg_lines *new, *ret, *prev;
       const char *t;
  +    apr_status_t rv;
   
  -    fp = ap_pcfg_openfile(p, filename);
  -    if (!fp) {
  -        ap_log_rerror(APLOG_MARK, APLOG_WARNING, errno, r,
  +    rv = ap_pcfg_openfile(&fp, p, filename);
  +    if (rv != APR_SUCCESS) {
  +        ap_log_rerror(APLOG_MARK, APLOG_WARNING, rv, r,
   		    "mod_info: couldn't open config file %s",
   		    filename);
           return NULL;
  
  
  

Mime
View raw message