From fdb1c9c4f2c7bf734153f71bd90e6d3e0230d4b5 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Wed, 23 Dec 2009 12:58:46 -0800 Subject: [PATCH] cleanup warnings. --- src/conf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/conf.c b/src/conf.c index 5a371d9b4a..f16f1fdf36 100644 --- a/src/conf.c +++ b/src/conf.c @@ -145,7 +145,7 @@ ConfNodeFree(ConfNode *node) { ConfNode *tmp; - while (tmp = TAILQ_FIRST(&node->head)) { + while ((tmp = TAILQ_FIRST(&node->head))) { TAILQ_REMOVE(&node->head, tmp, next); ConfNodeFree(tmp); } @@ -399,7 +399,7 @@ ConfDeInit(void) } static char * -ConfPrintNameArray(const char **name_arr, int level) +ConfPrintNameArray(char **name_arr, int level) { static char name[128*128]; int i; @@ -773,7 +773,7 @@ ConfNodeLookupChildValueTest(void) ConfNode *parent = ConfNodeNew(); ConfNode *child; - char *value; + const char *value; for (i = 0; i < sizeof(test_vals)/sizeof(test_vals[0]); i++) { child = ConfNodeNew();