Project

General

Profile

Bug #3788 » mod_fix_htsmsg_misleading-indentation.patch

Sebastian K., 2016-05-08 22:26

View differences:

./tvheadend-git.new/src/htsmsg.c 2016-05-08 22:14:15.123279854 +0200
968 968
  TAILQ_FOREACH(f, &msg->hm_fields, hmf_link) {
969 969

  
970 970
    for(i = 0; i < indent; i++) printf("\t");
971
    
971

  
972 972
    printf("%s (", f->hmf_name ?: "");
973
    
973

  
974 974
    switch(f->hmf_type) {
975 975

  
976 976
    case HMF_MAP:
977 977
      printf("MAP) = {\n");
978 978
      htsmsg_print0(&f->hmf_msg, indent + 1);
979
      for(i = 0; i < indent; i++) printf("\t"); printf("}\n");
979
      for(i = 0; i < indent; i++) printf("\t");
980
        printf("}\n");
980 981
      break;
981 982

  
982 983
    case HMF_LIST:
983 984
      printf("LIST) = {\n");
984 985
      htsmsg_print0(&f->hmf_msg, indent + 1);
985
      for(i = 0; i < indent; i++) printf("\t"); printf("}\n");
986
      for(i = 0; i < indent; i++) printf("\t");
987
        printf("}\n");
986 988
      break;
987
      
989

  
988 990
    case HMF_STR:
989 991
      printf("STR) = \"%s\"\n", f->hmf_str);
990 992
      break;
(1-1/2)