httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@locus.apache.org
Subject cvs commit: apache-2.0/src/modules/standard mod_so.c
Date Tue, 16 May 2000 02:49:43 GMT
gstein      00/05/15 19:49:43

  Modified:    src/modules/standard mod_so.c
  Log:
  do not canonicalize errors for ap_strerror(). use sizeof() rather than
      a bare constant.
  
  Submitted by: Brian Havard
  Reviewed by: Greg Stein
  
  Revision  Changes    Path
  1.17      +2 -2      apache-2.0/src/modules/standard/mod_so.c
  
  Index: mod_so.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_so.c,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- mod_so.c	2000/05/15 21:41:56	1.16
  +++ mod_so.c	2000/05/16 02:49:42	1.17
  @@ -256,7 +256,7 @@
        */
       if ((status = ap_dso_load(&modhandle, szModuleFile, cmd->pool )) != APR_SUCCESS)
{
           char my_error[256];
  -        ap_strerror(ap_canonical_error(status), my_error, 256);
  +        ap_strerror(status, my_error, sizeof(my_error));
           return ap_pstrcat (cmd->pool, "Cannot load ", szModuleFile,
                              " into server: ", 
                              my_error ? my_error : "(reason unknown)",
  @@ -274,7 +274,7 @@
           char my_err[256];
   	return ap_pstrcat(cmd->pool, "Can't locate API module structure `", modname,
   		       "' in file ", szModuleFile, ": ", 
  -                       ap_strerror(ap_canonical_error(status), my_err, 256), NULL);
  +                       ap_strerror(status, my_err, sizeof(my_error)), NULL);
       }
       modp = (module*) modsym;
       modp->dynamic_load_handle = (ap_dso_handle_t *)modhandle;
  
  
  

Mime
View raw message