From: Ralf S. Engelschall Date: Sat, 28 Aug 1999 12:22:10 +0000 (+0000) Subject: Make ``configure --with-option=devel'' under X-Git-Tag: 1.3.10~356 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=895541ebc17aa45a80da8dbe54a7abdbbbbd9b21;p=apache Make ``configure --with-option=devel'' under GCC 2.95.1 happy by avoiding various warnings... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83836 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 618121de4a..43cefb8dbc 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -80,7 +80,7 @@ HOOK_STRUCT( HOOK_LINK(log_transaction) HOOK_LINK(http_method) HOOK_LINK(default_port) -); +) #define SET_BYTES_SENT(r) \ do { if (r->sent_bodyct) \ diff --git a/server/connection.c b/server/connection.c index e2714ac940..a9f0eac514 100644 --- a/server/connection.c +++ b/server/connection.c @@ -67,7 +67,7 @@ HOOK_STRUCT( HOOK_LINK(pre_connection) HOOK_LINK(process_connection) -); +) IMPLEMENT_HOOK_VOID(pre_connection,(conn_rec *c),(c)) IMPLEMENT_HOOK_RUN_FIRST(int,process_connection,(conn_rec *c),(c),DECLINED) diff --git a/server/main.c b/server/main.c index 7e443bf879..93f87fde88 100644 --- a/server/main.c +++ b/server/main.c @@ -233,6 +233,9 @@ static void usage(char *bin) } pool *g_pHookPool; + +extern char *optarg; + #ifdef WIN32 __declspec(dllexport) int apache_main(int argc, char *argv[]) @@ -251,7 +254,6 @@ int main(int argc, char **argv) pool *plog; /* Pool for error-logging files */ pool *ptemp; /* Pool for temporart config stuff */ pool *pcommands; /* Pool for -C and -c switches */ - extern char *optarg; /* TODO: PATHSEPARATOR should be one of the os defines */ #define PATHSEPARATOR '/'