You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2002/06/27 12:47:50 UTC

cvs commit: httpd-2.0/os/unix unixd.c

trawick     2002/06/27 03:47:49

  Modified:    os/unix  unixd.c
  Log:
  fix compile breakage with IBM's xlc compiler caused by the
  attempt to lose const on progname
  
  strrchr was not the real library function that takes a
  const parameter; instead, strrchr was the Apache macro which
  makes it clear that const will be lost
  
  Revision  Changes    Path
  1.55      +1 -1      httpd-2.0/os/unix/unixd.c
  
  Index: unixd.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/os/unix/unixd.c,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- unixd.c	27 Jun 2002 06:07:58 -0000	1.54
  +++ unixd.c	27 Jun 2002 10:47:49 -0000	1.55
  @@ -332,7 +332,7 @@
           return apr_proc_create(newproc, progname, args, env, attr, p);
       }
   
  -    argv0 = strrchr(progname, '/');
  +    argv0 = ap_strrchr_c(progname, '/');
       /* Allow suexec's "/" check to succeed */
       if (argv0 != NULL) {
           argv0++;