diff --git a/src/fe/fe_logical_ops.c b/src/fe/fe_logical_ops.c index 67c7a46..f88cc01 100644 --- a/src/fe/fe_logical_ops.c +++ b/src/fe/fe_logical_ops.c @@ -21,6 +21,7 @@ */ +#include #include #include #include @@ -101,7 +102,7 @@ static buffer *fe_unary_logical_op(ows * o, buffer * typename, filter_encoding * assert(n); buffer_add_str(fe->sql, "not("); - fe->in_not++; + fe->in_not = true; n = n->children; while (n->type != XML_ELEMENT_NODE) n = n->next; @@ -112,7 +113,7 @@ static buffer *fe_unary_logical_op(ows * o, buffer * typename, filter_encoding * else if (fe_is_comparison_op((char *) n->name)) fe->sql = fe_comparison_op(o, typename, fe, n); buffer_add_str(fe->sql, ")"); - fe->in_not--; + fe->in_not = false; return fe->sql; } diff --git a/src/ows_struct.h b/src/ows_struct.h index 0805a5b..165e9cc 100644 --- a/src/ows_struct.h +++ b/src/ows_struct.h @@ -24,18 +24,12 @@ #ifndef OWS_STRUCT_H #define OWS_STRUCT_H +#include #include /* FILE prototype */ /* ========= Structures ========= */ -enum Bool { - false, - true -}; - -typedef enum Bool bool; - #define BUFFER_SIZE_INIT 256 typedef struct Buffer {