projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add enum {} default mapping to "int" type
[babeltrace.git]
/
formats
/
ctf
/
metadata
/
ctf-visitor-xml.c
diff --git
a/formats/ctf/metadata/ctf-visitor-xml.c
b/formats/ctf/metadata/ctf-visitor-xml.c
index d1c0751c51e3c8c548144c087cd1834c05d6fa52..96145f8b73bf249d797218413ac80dcc942dd457 100644
(file)
--- a/
formats/ctf/metadata/ctf-visitor-xml.c
+++ b/
formats/ctf/metadata/ctf-visitor-xml.c
@@
-609,12
+609,9
@@
int ctf_visitor_print_xml(FILE *fd, int depth, struct ctf_node *node)
if (node->u._enum.container_type) {
print_tabs(fd, depth);
fprintf(fd, "<container_type>\n");
if (node->u._enum.container_type) {
print_tabs(fd, depth);
fprintf(fd, "<container_type>\n");
- }
-
- ret = ctf_visitor_print_xml(fd, depth + 1, node->u._enum.container_type);
- if (ret)
- return ret;
- if (node->u._enum.container_type) {
+ ret = ctf_visitor_print_xml(fd, depth + 1, node->u._enum.container_type);
+ if (ret)
+ return ret;
print_tabs(fd, depth);
fprintf(fd, "</container_type>\n");
}
print_tabs(fd, depth);
fprintf(fd, "</container_type>\n");
}
This page took
0.024843 seconds
and
4
git commands to generate.