aboutsummaryrefslogtreecommitdiffstats
path: root/community/tvheadend/fix-indentation.patch
blob: 5b0d355efc5e4a7d68b8bba1af36592ea1d46a18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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;