From cd1ebac900d51ba149e7caefe3cef080cb20e92d Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Tue, 23 Oct 2012 10:18:19 +0000 Subject: [PATCH] Hide get_expected_content_length() when compiling without FEATURE_CONNECTION_KEEP_ALIVE It's not called and references functions that aren't available in that scenario. --- parsers.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parsers.c b/parsers.c index db9527e1..f0219eee 100644 --- a/parsers.c +++ b/parsers.c @@ -1,4 +1,4 @@ -const char parsers_rcs[] = "$Id: parsers.c,v 1.257 2012/10/21 12:39:27 fabiankeil Exp $"; +const char parsers_rcs[] = "$Id: parsers.c,v 1.258 2012/10/21 12:58:03 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.c,v $ @@ -4328,6 +4328,7 @@ static void create_content_length_header(unsigned long long content_length, } +#ifdef FEATURE_CONNECTION_KEEP_ALIVE /********************************************************************* * * Function : get_expected_content_length @@ -4359,7 +4360,7 @@ unsigned long long get_expected_content_length(struct list *headers) return content_length; } - +#endif /* Local Variables: -- 2.39.2