summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2009-08-07 04:30:38 +0530
committerMukund Sivaraman <muks@banu.com>2009-08-07 04:30:38 +0530
commit4518e4334dad79f2e307c1bffb0b3272f874d1bf (patch)
treef8140d1a437a8d3671960a1185ace2ffa73444e7 /src
parent59d273fdcc3410cad28a6e4a7941158cc63d3220 (diff)
downloadtinyproxy-4518e4334dad79f2e307c1bffb0b3272f874d1bf.tar.gz
tinyproxy-4518e4334dad79f2e307c1bffb0b3272f874d1bf.zip
Wrap len in parantheses
Diffstat (limited to '')
-rw-r--r--src/reqs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/reqs.c b/src/reqs.c
index 9aa611e..b4259a8 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -67,15 +67,15 @@
/*
* Codify the test for the carriage return and new line characters.
*/
-#define CHECK_CRLF(header, len) \
- ((len == 1 && header[0] == '\n') || \
- (len == 2 && header[0] == '\r' && header[1] == '\n'))
+#define CHECK_CRLF(header, len) \
+ (((len) == 1 && header[0] == '\n') || \
+ ((len) == 2 && header[0] == '\r' && header[1] == '\n'))
/*
* Codify the test for header fields folded over multiple lines.
*/
-#define CHECK_LWS(header, len) \
- (len >= 1 && (header[0] == ' ' || header[0] == '\t'))
+#define CHECK_LWS(header, len) \
+ ((len) > 0 && (header[0] == ' ' || header[0] == '\t'))
/*
* This is a global variable which stores which ports are allowed by