Skip to content

Commit

Permalink
htsmsg: fix code indentation, fixes #3788
Browse files Browse the repository at this point in the history
  • Loading branch information
perexg committed May 9, 2016
1 parent 566abcc commit 9ddcb8d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/htsmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9ddcb8d

Please sign in to comment.