summaryrefslogtreecommitdiff
path: root/src/cli_val.h
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-11 20:34:11 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-11 20:34:11 -0700
commit205350e6adfb7548d68680cd1dea0760b1fd8bd7 (patch)
tree581b6a8b8f5fad1a9888cbea948cfbe941bc7cd1 /src/cli_val.h
parent1fe53b8edbc7f5d51bf05b640eb63b8ebe183560 (diff)
downloadvyatta-cfg-205350e6adfb7548d68680cd1dea0760b1fd8bd7.tar.gz
vyatta-cfg-205350e6adfb7548d68680cd1dea0760b1fd8bd7.zip
Fix warnings from redefining TRUE
TRUE and FALSE are already defined in glib causing warnings.
Diffstat (limited to 'src/cli_val.h')
-rw-r--r--src/cli_val.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cli_val.h b/src/cli_val.h
index a753c92..e8fbe83 100644
--- a/src/cli_val.h
+++ b/src/cli_val.h
@@ -4,8 +4,12 @@
#define BITWISE 0 /* no partial commit */
#define boolean int
-#define TRUE 1
+#ifndef FALSE
#define FALSE 0
+#endif
+#ifndef TRUE
+#define TRUE (!FALSE)
+#endif
/* allocation unit for vals in valstruct */
#define MULTI_ALLOC 5 /* we have room if cnt%MULTI_ALLOC != 0 */