diff options
author | David Teirney <david@teirney.net> | 2011-08-28 21:38:14 +1200 |
---|---|---|
committer | David Teirney <david@teirney.net> | 2011-08-29 00:02:33 +1200 |
commit | 669d9b0f29d5b6ccf2fd0969fa64fad2e2191014 (patch) | |
tree | b5e8749c33980e06fde2032c0b9b6777087a8519 /lib | |
parent | 2d8d79cf13e384c87c5f7097998ec7864831c3c7 (diff) |
Cosmetic. Move content to same line where possible. Break out multiple fields into multiple lines.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cmyth/libcmyth/proginfo.c | 52 |
1 files changed, 19 insertions, 33 deletions
diff --git a/lib/cmyth/libcmyth/proginfo.c b/lib/cmyth/libcmyth/proginfo.c index cf1aee4453..295fc85012 100644 --- a/lib/cmyth/libcmyth/proginfo.c +++ b/lib/cmyth/libcmyth/proginfo.c @@ -497,34 +497,27 @@ delete_command(cmyth_conn_t control, cmyth_proginfo_t prog, char *cmd) sprintf(buf + strlen(buf), "%s[]:[]", S(prog->proginfo_stars)); sprintf(buf + strlen(buf), "%s[]:[]", originalairdate); if (control->conn_version >= 15) { - sprintf(buf + strlen(buf), "%ld[]:[]", - prog->proginfo_hasairdate); + sprintf(buf + strlen(buf), "%ld[]:[]", prog->proginfo_hasairdate); } if (control->conn_version >= 18) { - sprintf(buf + strlen(buf), "%s[]:[]", - S(prog->proginfo_playgroup)); + sprintf(buf + strlen(buf), "%s[]:[]", S(prog->proginfo_playgroup)); } - if (control->conn_version >= 25){ - sprintf(buf + strlen(buf), "%s[]:[]", - S(prog->proginfo_recpriority_2)); + if (control->conn_version >= 25) { + sprintf(buf + strlen(buf), "%s[]:[]", S(prog->proginfo_recpriority_2)); } if (control->conn_version >= 31) { - sprintf(buf + strlen(buf), "%ld[]:[]", - prog->proginfo_parentid); + sprintf(buf + strlen(buf), "%ld[]:[]", prog->proginfo_parentid); } if (control->conn_version >= 32) { - sprintf(buf + strlen(buf), "%s[]:[]", - S(prog->proginfo_storagegroup)); + sprintf(buf + strlen(buf), "%s[]:[]", S(prog->proginfo_storagegroup)); } if (control->conn_version >= 35) { - sprintf(buf + strlen(buf), "%ld[]:[]%ld[]:[]%ld[]:[]", - prog->proginfo_audioproperties, - prog->proginfo_videoproperties, - prog->proginfo_subtitletype); + sprintf(buf + strlen(buf), "%ld[]:[]", prog->proginfo_audioproperties); + sprintf(buf + strlen(buf), "%ld[]:[]", prog->proginfo_videoproperties); + sprintf(buf + strlen(buf), "%ld[]:[]", prog->proginfo_subtitletype); } if (control->conn_version >= 41) { - sprintf(buf + strlen(buf), "%s[]:[]", - S(prog->proginfo_prodyear)); + sprintf(buf + strlen(buf), "%s[]:[]", S(prog->proginfo_prodyear)); } } #undef S @@ -1344,34 +1337,27 @@ fill_command(cmyth_conn_t control, cmyth_proginfo_t prog, char *cmd) sprintf(buf + strlen(buf), "%s[]:[]", S(prog->proginfo_stars)); sprintf(buf + strlen(buf), "%s[]:[]", originalairdate); if(control->conn_version >= 15) { - sprintf(buf+strlen(buf),"%ld[]:[]", - prog->proginfo_hasairdate); + sprintf(buf + strlen(buf), "%ld[]:[]", prog->proginfo_hasairdate); } if(control->conn_version >= 18) { - sprintf(buf+strlen(buf),"%s[]:[]", - S(prog->proginfo_playgroup)); + sprintf(buf + strlen(buf), "%s[]:[]", S(prog->proginfo_playgroup)); } if(control->conn_version >= 25) { - sprintf(buf+strlen(buf),"%s[]:[]", - S(prog->proginfo_recpriority_2)); + sprintf(buf + strlen(buf), "%s[]:[]", S(prog->proginfo_recpriority_2)); } if(control->conn_version >= 31) { - sprintf(buf+strlen(buf),"%ld[]:[]", - prog->proginfo_parentid); + sprintf(buf + strlen(buf), "%ld[]:[]", prog->proginfo_parentid); } if(control->conn_version >= 32) { - sprintf(buf+strlen(buf),"%s[]:[]", - S(prog->proginfo_storagegroup)); + sprintf(buf + strlen(buf), "%s[]:[]", S(prog->proginfo_storagegroup)); } if(control->conn_version >= 35) { - sprintf(buf+strlen(buf),"%ld[]:[]%ld[]:[]%ld[]:[]", - prog->proginfo_audioproperties, - prog->proginfo_videoproperties, - prog->proginfo_subtitletype); + sprintf(buf + strlen(buf), "%ld[]:[]", prog->proginfo_audioproperties); + sprintf(buf + strlen(buf), "%ld[]:[]", prog->proginfo_videoproperties); + sprintf(buf + strlen(buf), "%ld[]:[]", prog->proginfo_subtitletype); } if(control->conn_version >= 41) { - sprintf(buf+strlen(buf),"%s[]:[]", - S(prog->proginfo_prodyear)); + sprintf(buf + strlen(buf), "%s[]:[]", S(prog->proginfo_prodyear)); } } #undef S |