]> granicus.if.org Git - apache/commitdiff
Prevent a compile warning on FreeBSD by making pointers const (only needed
authorJeff Trawick <trawick@apache.org>
Wed, 1 Nov 2000 13:03:01 +0000 (13:03 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 1 Nov 2000 13:03:01 +0000 (13:03 +0000)
for data, but not harmful for functions)

old warning: "exports.c:59: warning: initialization discards `const' from pointer target type"

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86784 13f79535-47bb-0310-9956-ffa450edef68

build/buildexports.sh

index c8313f3bb0c30b01425785551721654badf2a107..de8c7d8232f1ee20a5fd64103067ac719db893e5 100755 (executable)
@@ -22,7 +22,7 @@ while read LINE
 do
     if [ "x`echo $LINE | egrep  '^[:space:]*apr_'`" != "x" ]; then
         newline=`echo "$LINE" |\
-            sed -e 's%^\(.*\)%void *ap_hack_\1 = \1\;%'`
+            sed -e 's%^\(.*\)%const void *ap_hack_\1 = \1\;%'`
         echo $newline
     fi
 done