summaryrefslogtreecommitdiff
path: root/src/data_array.c
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2005-08-08 10:16:53 +0000
committerJan Kneschke <jan@kneschke.de>2005-08-08 10:16:53 +0000
commit9e75ba0096a87891ab013d6ee360d715b64e31c6 (patch)
tree32512be643ea72673e2050fb07fabc28e1228877 /src/data_array.c
parent4a6ce4ae5bae326a7803b5bf3d48c8539d34ae2c (diff)
downloadlighttpd-git-9e75ba0096a87891ab013d6ee360d715b64e31c6.tar.gz
indent array for readability (merged [288])
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@508 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/data_array.c')
-rw-r--r--src/data_array.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/data_array.c b/src/data_array.c
index 6cd740c4..6368f227 100644
--- a/src/data_array.c
+++ b/src/data_array.c
@@ -29,12 +29,14 @@ static int data_array_insert_dup(data_unset *dst, data_unset *src) {
return 0;
}
-static void data_array_print(data_unset *d) {
+static void data_array_print(data_unset *d, int depth) {
data_array *ds = (data_array *)d;
-
- printf("{%s:\n", ds->key->ptr);
- array_print(ds->value);
- printf("}");
+
+ array_print_indent(depth);
+ fprintf(stderr, "{%s:\n", ds->key->ptr);
+ array_print(ds->value, depth + 1);
+ array_print_indent(depth);
+ fprintf(stderr, "}");
}