From: Fabian Keil <fk@fabiankeil.de>
Date: Sat, 7 Mar 2009 11:17:01 +0000 (+0000)
Subject: Fix compiler warning.
X-Git-Tag: v_3_0_12~39
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/developer-manual/static/@default-cgi@show-url-info?a=commitdiff_plain;h=6fa9aefbe715c2a9f2a526fa0f335e251ce7093c;p=privoxy.git

Fix compiler warning.
---

diff --git a/jcc.c b/jcc.c
index 8b2cad67..ca283d3f 100644
--- a/jcc.c
+++ b/jcc.c
@@ -1,4 +1,4 @@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.227 2009/03/02 19:18:11 fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.228 2009/03/06 20:30:13 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@ -33,6 +33,9 @@ const char jcc_rcs[] = "$Id: jcc.c,v 1.227 2009/03/02 19:18:11 fabiankeil Exp $"
  *
  * Revisions   :
  *    $Log: jcc.c,v $
+ *    Revision 1.228  2009/03/06 20:30:13  fabiankeil
+ *    Log unsigned values as such.
+ *
  *    Revision 1.227  2009/03/02 19:18:11  fabiankeil
  *    Streamline parse_http_request()'s prototype. As
  *    cparser pointed out it doesn't actually use csp.
@@ -2160,7 +2163,7 @@ static jb_err change_request_destination(struct client_state *csp)
  *********************************************************************/
 static int server_response_is_complete(struct client_state *csp, size_t content_length)
 {
-   int content_length_known = (csp->flags & CSP_FLAG_CONTENT_LENGTH_SET);
+   int content_length_known = !!(csp->flags & CSP_FLAG_CONTENT_LENGTH_SET);
 
    if (!strcmpic(csp->http->gpc, "HEAD"))
    {