From: Amos Jeffries Date: Wed, 29 Apr 2009 11:38:28 +0000 (+1200) Subject: Debug() in cachemgr needs to be wrapped for if-else X-Git-Tag: SQUID_3_2_0_1~1029 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5fbb6c9433acddd7a45485d42471bb122d5196cf;p=thirdparty%2Fsquid.git Debug() in cachemgr needs to be wrapped for if-else --- diff --git a/tools/cachemgr.cc b/tools/cachemgr.cc index b9569cf501..39aa118968 100644 --- a/tools/cachemgr.cc +++ b/tools/cachemgr.cc @@ -871,10 +871,11 @@ process_request(cachemgr_request * req) req->hostname, req->action, make_auth_header(req)); - if (write(s, buf, l) <0 ) + if (write(s, buf, l) < 0) { debug(1) fprintf(stderr, "ERROR: (%d) writing request: '%s'\n", errno, buf); - else + } else { debug(1) fprintf(stderr, "wrote request: '%s'\n", buf); + } return read_reply(s, req); }