aboutsummaryrefslogtreecommitdiff
path: root/lib/tar
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-06-24 16:07:45 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-06-25 15:12:41 +0200
commit8348086b48af0cbabe4cf2b64992ced6561ea50c (patch)
treea77cb51107c1b67c9fc1e1c08d45ef1947a95e80 /lib/tar
parent0880db76afe85391430c547a67bad54b655a66e1 (diff)
Remove casual un-const casting in various places
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/tar')
-rw-r--r--lib/tar/number.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tar/number.c b/lib/tar/number.c
index 06d5317..50cb658 100644
--- a/lib/tar/number.c
+++ b/lib/tar/number.c
@@ -69,7 +69,7 @@ fail_ov:
int read_number(const char *str, int digits, sqfs_u64 *out)
{
- if (*((unsigned char *)str) & 0x80)
+ if (*((const unsigned char *)str) & 0x80)
return read_binary(str, digits, out);
return read_octal(str, digits, out);