Fix compiler warning.
authorFabian Keil <fk@fabiankeil.de>
Sat, 7 Mar 2009 11:17:01 +0000 (11:17 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sat, 7 Mar 2009 11:17:01 +0000 (11:17 +0000)
jcc.c

diff --git a/jcc.c b/jcc.c
index 8b2cad6..ca283d3 100644 (file)
--- 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"))
    {