aports/community/tvheadend/fix-indentation.patch
2016-08-16 15:18:19 +02:00

45 lines
1.2 KiB
Diff

From 9ddcb8d390f1d99f0cf0b3f78ca95024f0c99e94 Mon Sep 17 00:00:00 2001
From: Jaroslav Kysela <perex@perex.cz>
Date: Mon, 9 May 2016 09:25:43 +0200
Subject: [PATCH] htsmsg: fix code indentation, fixes #3788
---
src/htsmsg.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/htsmsg.c b/src/htsmsg.c
index 11e36ea..9c9d842 100644
--- a/src/htsmsg.c
+++ b/src/htsmsg.c
@@ -968,23 +968,25 @@ htsmsg_print0(htsmsg_t *msg, int indent)
TAILQ_FOREACH(f, &msg->hm_fields, hmf_link) {
for(i = 0; i < indent; i++) printf("\t");
-
+
printf("%s (", f->hmf_name ?: "");
-
+
switch(f->hmf_type) {
case HMF_MAP:
printf("MAP) = {\n");
htsmsg_print0(&f->hmf_msg, indent + 1);
- for(i = 0; i < indent; i++) printf("\t"); printf("}\n");
+ for(i = 0; i < indent; i++) printf("\t");
+ printf("}\n");
break;
case HMF_LIST:
printf("LIST) = {\n");
htsmsg_print0(&f->hmf_msg, indent + 1);
- for(i = 0; i < indent; i++) printf("\t"); printf("}\n");
+ for(i = 0; i < indent; i++) printf("\t");
+ printf("}\n");
break;
-
+
case HMF_STR:
printf("STR) = \"%s\"\n", f->hmf_str);
break;