diff --git a/include/r3.h b/include/r3.h index 592d64d..df516df 100644 --- a/include/r3.h +++ b/include/r3.h @@ -12,8 +12,6 @@ #include #include - - #ifdef HAVE_STDBOOL_H #include @@ -23,11 +21,11 @@ #if !defined(bool) && !defined(__cplusplus) typedef unsigned char bool; #endif -#ifndef FALSE -# define FALSE 0 +#ifndef false +# define false 0 #endif -#ifndef TRUE -# define TRUE 1 +#ifndef true +# define true 1 #endif #endif diff --git a/src/node.c b/src/node.c index d7e06ac..10d2399 100644 --- a/src/node.c +++ b/src/node.c @@ -772,13 +772,13 @@ node * r3_tree_insert_pathl_ex(node *tree, const char *path, int path_len, route } bool r3_node_has_slug_edges(const node *n) { - bool found = FALSE; + bool found = false; edge *e; for ( int i = 0 ; i < n->edge_len ; i++ ) { e = &n->edges[i]; e->has_slug = r3_path_contains_slug_char(e->pattern); if (e->has_slug) - found = TRUE; + found = true; } return found; }