Hide get_expected_content_length() when compiling without FEATURE_CONNECTION_KEEP_ALIVE
authorFabian Keil <fk@fabiankeil.de>
Tue, 23 Oct 2012 10:18:19 +0000 (10:18 +0000)
committerFabian Keil <fk@fabiankeil.de>
Tue, 23 Oct 2012 10:18:19 +0000 (10:18 +0000)
It's not called and references functions that aren't available
in that scenario.

parsers.c

index db9527e..f0219ee 100644 (file)
--- 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: