commit: r1860 - neon/trunk/src

joe at manyfish.co.uk joe at manyfish.co.uk
Mon Oct 3 17:35:49 EDT 2011


Author: joe
Date: Mon Oct  3 21:35:49 2011
New Revision: 1860

Modified:
   neon/trunk/src/ne_request.c

Log:
* src/ne_request.c (ne_set_request_flag, ne_get_request_flag): Fix 
  warnings with gcc 4.5 -Wenum-compare.


Modified: neon/trunk/src/ne_request.c
==============================================================================
--- neon/trunk/src/ne_request.c	(original)
+++ neon/trunk/src/ne_request.c	Mon Oct  3 21:35:49 2011
@@ -529,14 +529,14 @@
 
 void ne_set_request_flag(ne_request *req, ne_request_flag flag, int value)
 {
-    if (flag < NE_SESSFLAG_LAST) {
+    if (flag < (ne_request_flag)NE_SESSFLAG_LAST) {
         req->flags[flag] = value;
     }
 }
 
 int ne_get_request_flag(ne_request *req, ne_request_flag flag)
 {
-    if (flag < NE_REQFLAG_LAST) {
+    if (flag < (ne_request_flag)NE_REQFLAG_LAST) {
         return req->flags[flag];
     }
     return -1;



More information about the neon-commits mailing list