projects
/
collection4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b69fb3
)
src/graph_def.c: Minor fixes.
author
Florian Forster
<octo@verplant.org>
Wed, 8 Sep 2010 09:26:04 +0000
(11:26 +0200)
committer
Florian Forster
<octo@verplant.org>
Wed, 8 Sep 2010 09:26:04 +0000
(11:26 +0200)
src/graph_def.c
patch
|
blob
|
history
diff --git
a/src/graph_def.c
b/src/graph_def.c
index
7ac8dac
..
c7ecb98
100644
(file)
--- 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 */
/*