httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@locus.apache.org
Subject cvs commit: apache-2.0/src/modules/standard mod_userdir.c
Date Tue, 20 Jun 2000 20:52:46 GMT
ben         00/06/20 13:52:45

  Modified:    src/modules/standard mod_userdir.c
  Log:
  Fix warnings.
  
  Revision  Changes    Path
  1.13      +3 -3      apache-2.0/src/modules/standard/mod_userdir.c
  
  Index: mod_userdir.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_userdir.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- mod_userdir.c	2000/06/20 11:31:54	1.12
  +++ mod_userdir.c	2000/06/20 20:52:44	1.13
  @@ -135,7 +135,7 @@
   #define O_ENABLE 1
   #define O_DISABLE 2
   
  -static const char *set_user_dir(cmd_parms *cmd, void *dummy, char *arg)
  +static const char *set_user_dir(cmd_parms *cmd, void *dummy, const char *arg)
   {
       userdir_config
       * s_cfg = (userdir_config *) ap_get_module_config
  @@ -270,7 +270,7 @@
           const char *userdir = ap_getword_conf(r->pool, &userdirs);
           char *filename = NULL;
   
  -        if (strchr(userdir, '*'))
  +        if (ap_strchr_c(userdir, '*'))
               x = ap_getword(r->pool, &userdir, '*');
   
   	if (userdir[0] == '\0' || ap_os_is_path_absolute(userdir)) {
  @@ -297,7 +297,7 @@
               else
                   filename = ap_pstrcat(r->pool, userdir, "/", w, NULL);
           }
  -        else if (strchr(userdir, ':')) {
  +        else if (ap_strchr_c(userdir, ':')) {
               redirect = ap_pstrcat(r->pool, userdir, "/", w, dname, NULL);
               ap_table_setn(r->headers_out, "Location", redirect);
               return REDIRECT;
  
  
  

Mime
View raw message