From 6fa9aefbe715c2a9f2a526fa0f335e251ce7093c Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 7 Mar 2009 11:17:01 +0000 Subject: [PATCH 1/1] Fix compiler warning. --- jcc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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")) { -- 2.39.2