From: Florian Forster Date: Wed, 8 Sep 2010 09:26:04 +0000 (+0200) Subject: src/graph_def.c: Minor fixes. X-Git-Tag: v4.0.0~43 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8db49fed11e36674ff6f4d51b44e5cf0c8fc40ee;p=collection4.git src/graph_def.c: Minor fixes. --- diff --git a/src/graph_def.c b/src/graph_def.c index 7ac8dac..c7ecb98 100644 --- a/src/graph_def.c +++ b/src/graph_def.c @@ -156,7 +156,7 @@ static int def_to_json_recursive (const graph_def_t *def, /* {{{ */ if (def == NULL) return (0); - snprintf (color, sizeof (color), "%06"PRIx32, def->color); + snprintf (color, sizeof (color), "#%06"PRIx32, def->color); color[sizeof (color) - 1] = 0; yajl_gen_map_open (handler); @@ -182,6 +182,7 @@ static int def_to_json_recursive (const graph_def_t *def, /* {{{ */ yajl_gen_map_close (handler); return (def_to_json_recursive (def->next, handler)); +#undef yajl_gen_string_cast } /* }}} int def_to_json_recursive */ /*