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/main util_script.c
Date Mon, 02 Oct 2000 18:40:33 GMT
trawick     00/10/02 11:40:30

  Modified:    src/main util_script.c
  Log:
  Clean up some const-ness warnings in getsfunc_STRING().
  
  Revision  Changes    Path
  1.42      +3 -3      apache-2.0/src/main/util_script.c
  
  Index: util_script.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/util_script.c,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- util_script.c	2000/10/02 15:38:57	1.41
  +++ util_script.c	2000/10/02 18:40:25	1.42
  @@ -616,16 +616,16 @@
   static int getsfunc_STRING(char *w, int len, void *pvastrs)
   {
       struct vastrs *strs = (struct vastrs*) pvastrs;
  -    char *p;
  +    const char *p;
       int t;
       
       if (!strs->curpos || !*strs->curpos) 
           return 0;
  -    p = strchr(strs->curpos, '\n');
  +    p = ap_strchr_c(strs->curpos, '\n');
       if (p)
           ++p;
       else
  -        p = strchr(strs->curpos, '\0');
  +        p = ap_strchr_c(strs->curpos, '\0');
       t = p - strs->curpos;
       if (t > len)
           t = len;
  
  
  

Mime
View raw message