diff options
author | David Teirney <david@teirney.net> | 2011-09-04 17:54:50 +1200 |
---|---|---|
committer | David Teirney <david@teirney.net> | 2011-09-04 18:24:19 +1200 |
commit | cfb7de167c4017aa75d60ebf14b0d84beecc2cf2 (patch) | |
tree | 99552de73d67e3db2fe50abc50196149fa8ea0c8 /lib | |
parent | 7ca8283546b3e98734510ddb9cf01e614e648e2a (diff) |
Silence compiler warning by specifying 0 as 0L so it's treated as a long.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cmyth/libcmyth/proginfo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/cmyth/libcmyth/proginfo.c b/lib/cmyth/libcmyth/proginfo.c index a4b7b41a47..b175637ca9 100644 --- a/lib/cmyth/libcmyth/proginfo.c +++ b/lib/cmyth/libcmyth/proginfo.c @@ -478,9 +478,9 @@ delete_command(cmyth_conn_t control, cmyth_proginfo_t prog, char *cmd) sprintf(buf + strlen(buf), "%s[]:[]", end_ts); if (control->conn_version < 57) { sprintf(buf + strlen(buf), "%s[]:[]", S(prog->proginfo_unknown_0)); // "duplicate" - sprintf(buf + strlen(buf), "%ld[]:[]", 0); // "shareable" + sprintf(buf + strlen(buf), "%ld[]:[]", 0L); // "shareable" } - sprintf(buf + strlen(buf), "%ld[]:[]", 0); // "findid" + sprintf(buf + strlen(buf), "%ld[]:[]", 0L); // "findid" sprintf(buf + strlen(buf), "%s[]:[]", S(prog->proginfo_hostname)); sprintf(buf + strlen(buf), "%ld[]:[]", prog->proginfo_source_id); sprintf(buf + strlen(buf), "%ld[]:[]", prog->proginfo_card_id); @@ -1352,9 +1352,9 @@ fill_command(cmyth_conn_t control, cmyth_proginfo_t prog, char *cmd) sprintf(buf + strlen(buf), "%s[]:[]", end_ts); if (control->conn_version < 57) { sprintf(buf + strlen(buf), "%s[]:[]", S(prog->proginfo_unknown_0)); // "duplicate" - sprintf(buf + strlen(buf), "%ld[]:[]", 0); // "shareable" + sprintf(buf + strlen(buf), "%ld[]:[]", 0L); // "shareable" } - sprintf(buf + strlen(buf), "%ld[]:[]", 0); // "findid" + sprintf(buf + strlen(buf), "%ld[]:[]", 0L); // "findid" sprintf(buf + strlen(buf), "%s[]:[]", S(prog->proginfo_hostname)); sprintf(buf + strlen(buf), "%ld[]:[]", prog->proginfo_source_id); sprintf(buf + strlen(buf), "%ld[]:[]", prog->proginfo_card_id); |