From 402eda40a7e01f5b833f1d47b1225b69c55d5dcf Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 6 Jan 2010 18:54:39 -0800 Subject: [PATCH] Change flag values to bit shifts --- http_parser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/http_parser.c b/http_parser.c index 8cd8d5b..de209e1 100644 --- a/http_parser.c +++ b/http_parser.c @@ -236,10 +236,10 @@ enum header_states }; enum flags - { F_CHUNKED = 0x0001 - , F_CONNECTION_KEEP_ALIVE = 0x0002 - , F_CONNECTION_CLOSE = 0x0004 - , F_TRAILING = 0x0010 + { F_CHUNKED = 1 << 0 + , F_CONNECTION_KEEP_ALIVE = 1 << 1 + , F_CONNECTION_CLOSE = 1 << 2 + , F_TRAILING = 1 << 3 }; #define CR '\r'