From ffa879d092f025f6b72f23f51af488d90898d8c5 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Thu, 1 Aug 2002 08:22:09 +0000 Subject: [PATCH] o 0 was used rather than NULL in a couple of places. o Indent output with tabs rather than single spaces. --- lib/config/config.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/config/config.c b/lib/config/config.c index 4292f8cdd..ada847876 100644 --- a/lib/config/config.c +++ b/lib/config/config.c @@ -190,7 +190,7 @@ static int _write_config(struct config_node *n, FILE * fp, int level) return 1; for (i = 0; i < l; i++) - space[i] = ' '; + space[i] = '\t'; space[i] = '\0'; while (n) { @@ -306,7 +306,7 @@ static struct config_node *_section(struct parser *p) static struct config_value *_value(struct parser *p) { /* '[' TYPE* ']' | TYPE */ - struct config_value *h = 0, *l, *ll = 0; + struct config_value *h = NULL, *l, *ll = NULL; if (p->t == TOK_ARRAY_B) { match(TOK_ARRAY_B); while (p->t != TOK_ARRAY_E) { @@ -339,13 +339,13 @@ static struct config_value *_type(struct parser *p) switch (p->t) { case TOK_INT: v->type = CFG_INT; - v->v.i = strtol(p->tb, 0, 0); /* FIXME: check error */ + v->v.i = strtol(p->tb, NULL, 0); /* FIXME: check error */ match(TOK_INT); break; case TOK_FLOAT: v->type = CFG_FLOAT; - v->v.r = strtod(p->tb, 0); /* FIXME: check error */ + v->v.r = strtod(p->tb, NULL); /* FIXME: check error */ match(TOK_FLOAT); break;