From: Jeff Trawick Date: Wed, 1 Nov 2000 13:03:01 +0000 (+0000) Subject: Prevent a compile warning on FreeBSD by making pointers const (only needed X-Git-Tag: APACHE_2_0_ALPHA_8~210 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91976ba707756f80101f9adfd594a0a785817a98;p=apache Prevent a compile warning on FreeBSD by making pointers const (only needed 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 --- diff --git a/build/buildexports.sh b/build/buildexports.sh index c8313f3bb0..de8c7d8232 100755 --- a/build/buildexports.sh +++ b/build/buildexports.sh @@ -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