diff options
author | Rob Landley <rob@landley.net> | 2019-11-13 21:26:26 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-11-13 21:26:26 -0600 |
commit | b213f91a0031da91eb6d3b86c7e724a0f7725d3e (patch) | |
tree | a9abe0dd009bb44ca2e7ada461cf239c4373acb2 /toys/posix/tar.c | |
parent | 25c3e691140f48e971bdcc558cdf9acb7576598a (diff) | |
download | toybox-b213f91a0031da91eb6d3b86c7e724a0f7725d3e.tar.gz |
Pedantic constant annotations to shut up older toolchains.
Diffstat (limited to 'toys/posix/tar.c')
-rw-r--r-- | toys/posix/tar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/tar.c b/toys/posix/tar.c index ff129819..1e662589 100644 --- a/toys/posix/tar.c +++ b/toys/posix/tar.c @@ -848,7 +848,7 @@ void tar_main(void) // detect gzip and bzip signatures if (SWAP_BE16(*(short *)hdr)==0x1f8b) toys.optflags |= FLAG_z; else if (!memcmp(hdr, "BZh", 3)) toys.optflags |= FLAG_j; - else if (peek_be(hdr, 7) == 0xfd377a585a0000) toys.optflags |= FLAG_J; + else if (peek_be(hdr, 7) == 0xfd377a585a0000UL) toys.optflags |= FLAG_J; else error_exit("Not tar"); // if we can seek back we don't need to loop and copy data |