aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/file.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-11-13 21:26:26 -0600
committerRob Landley <rob@landley.net>2019-11-13 21:26:26 -0600
commitb213f91a0031da91eb6d3b86c7e724a0f7725d3e (patch)
treea9abe0dd009bb44ca2e7ada461cf239c4373acb2 /toys/posix/file.c
parent25c3e691140f48e971bdcc558cdf9acb7576598a (diff)
downloadtoybox-b213f91a0031da91eb6d3b86c7e724a0f7725d3e.tar.gz
Pedantic constant annotations to shut up older toolchains.
Diffstat (limited to 'toys/posix/file.c')
-rw-r--r--toys/posix/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/file.c b/toys/posix/file.c
index 063397ce..5d6eef12 100644
--- a/toys/posix/file.c
+++ b/toys/posix/file.c
@@ -284,7 +284,7 @@ static void do_regular_file(int fd, char *name)
xputc('\n');
} else if (len>4 && strstart(&s, "BZh") && isdigit(*s))
xprintf("bzip2 compressed data, block size = %c00k\n", *s);
- else if (len > 31 && peek_be(s, 7) == 0xfd377a585a0000)
+ else if (len > 31 && peek_be(s, 7) == 0xfd377a585a0000UL)
xputs("xz compressed data");
else if (len>10 && strstart(&s, "\x1f\x8b")) xputs("gzip compressed data");
else if (len>32 && !memcmp(s+1, "\xfa\xed\xfe", 3)) {