From: hochwasser Date: Tue, 4 May 2021 15:28:39 +0000 (+0200) Subject: Remove unnecessary conversion X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7757f066582bdb244c56e658c4a99f8e1d5832cd;p=thirdparty%2Ftvheadend.git Remove unnecessary conversion The conversion from unsigned long to long long is not necessary. Corrected the print statement uses the format code %lu. --- diff --git a/src/access.c b/src/access.c index 1b0289a35..4422db912 100644 --- a/src/access.c +++ b/src/access.c @@ -524,9 +524,9 @@ access_dump_a(access_t *a) if (a->aa_chrange) { for (first = 0; first < a->aa_chrange_count; first += 2) - tvh_strlcatf(buf, sizeof(buf), l, ", [chmin=%llu, chmax=%llu]", - (long long)a->aa_chrange[first], - (long long)a->aa_chrange[first+1]); + tvh_strlcatf(buf, sizeof(buf), l, ", [chmin=%lu, chmax=%lu]", + a->aa_chrange[first], + a->aa_chrange[first+1]); }