From 4cae27522dd8f1c2deb11325a588ae8340e9224b Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 26 Nov 2009 16:39:38 +0100 Subject: [PATCH] Fix http module warnings. --- config.h.in | 3 +++ src/app-layer-http.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config.h.in b/config.h.in index 83df21570d..b570a556ff 100644 --- a/config.h.in +++ b/config.h.in @@ -130,6 +130,9 @@ /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME +/* Define to the home page for this package. */ +#undef PACKAGE_URL + /* Define to the version of this package. */ #undef PACKAGE_VERSION diff --git a/src/app-layer-http.c b/src/app-layer-http.c index 46f086ff60..f3c5d2ac65 100644 --- a/src/app-layer-http.c +++ b/src/app-layer-http.c @@ -407,7 +407,7 @@ static void HTTPStateFree(void *s) { #endif } -/* void RegisterHTTPParsers(void) { +void RegisterHTTPParsers(void) { AppLayerRegisterProto("http", ALPROTO_HTTP, STREAM_TOSERVER, HTTPParseRequest); AppLayerRegisterProto("http", ALPROTO_HTTP, STREAM_TOCLIENT, HTTPParseResponse); @@ -418,7 +418,7 @@ static void HTTPStateFree(void *s) { AppLayerRegisterParser("http.response.code", ALPROTO_HTTP, HTTP_FIELD_RESPONSE_CODE, HTTPParseResponseCode, "http.response_line"); AppLayerRegisterStateFuncs(ALPROTO_HTTP, HTTPStateAlloc, HTTPStateFree); -}*/ +} void HTTPAtExitPrintStats(void) { #ifdef DEBUG