]> granicus.if.org Git - apache/commitdiff
Fix type complaints on Xlc.
authorRyan Bloom <rbb@apache.org>
Mon, 13 Nov 2000 16:26:42 +0000 (16:26 +0000)
committerRyan Bloom <rbb@apache.org>
Mon, 13 Nov 2000 16:26:42 +0000 (16:26 +0000)
Submitted by: Victor J. Orlikowski <v.j.orlikowski@gte.net>

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

build/buildexports.sh
server/main.c

index de8c7d8232f1ee20a5fd64103067ac719db893e5..b1b8b54a8388108ff32b3e43bd848f88c173c4d6 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%^\(.*\)%const void *ap_hack_\1 = \1\;%'`
+            sed -e 's%^\(.*\)%const void *ap_hack_\1 = \(const void *\)\1\;%'`
         echo $newline
     fi
 done
index 1bd55076a18c8d07919a5b1d8cbaf41f69d2aff1..f611088dfcd15206fffbc63980e802420e830621 100644 (file)
@@ -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);