]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Remove unnecessary conversion
authorhochwasser <hochwasser@users.noreply.github.com>
Tue, 4 May 2021 15:28:39 +0000 (17:28 +0200)
committerFlole998 <Flole998@users.noreply.github.com>
Mon, 6 Sep 2021 19:32:09 +0000 (21:32 +0200)
The conversion from unsigned long to long long is not necessary.
Corrected the print statement uses the format code %lu.

src/access.c

index 1b0289a352949b5a26c0a0d316c12b67bc689a17..4422db9122fdd794dca40d471aaeb080d3ef2147 100644 (file)
@@ -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]);
   }