From: Ryan Bloom Date: Mon, 13 Nov 2000 16:26:42 +0000 (+0000) Subject: Fix type complaints on Xlc. X-Git-Tag: APACHE_2_0_ALPHA_8~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1eda38942e97a839ad32cdfb6bb139909dff39bf;p=thirdparty%2Fapache%2Fhttpd.git Fix type complaints on Xlc. Submitted by: Victor J. Orlikowski git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86939 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build/buildexports.sh b/build/buildexports.sh index de8c7d8232f..b1b8b54a838 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%^\(.*\)%const void *ap_hack_\1 = \1\;%'` + sed -e 's%^\(.*\)%const void *ap_hack_\1 = \(const void *\)\1\;%'` echo $newline fi done diff --git a/server/main.c b/server/main.c index 1bd55076a18..f611088dfcd 100644 --- a/server/main.c +++ b/server/main.c @@ -299,7 +299,7 @@ int main(int argc, char *argv[]) * the web server. exports.c is generated by buildconf, and it * has all of the apr functions specified by httpd.exp. */ - ap_ugly_hack = apr_initialize; + ap_ugly_hack = (void *) apr_initialize; #endif process = create_process(argc, argv);