diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2018-04-29 18:48:00 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2018-04-29 18:48:00 +0300 |
commit | cee3021d30704858e4bdd22240e7d28e570d7451 (patch) | |
tree | 1be403d00b68d78b59f7fc23cbcc0622273e095f /extra | |
parent | DOS: Add file_info.c to the list of files to build. (diff) | |
download | xz-cee3021d30704858e4bdd22240e7d28e570d7451.tar.xz |
extra/scanlzma: Fix compiler warnings.
Diffstat (limited to '')
-rw-r--r-- | extra/scanlzma/scanlzma.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/extra/scanlzma/scanlzma.c b/extra/scanlzma/scanlzma.c index 5c3b25be..110f822b 100644 --- a/extra/scanlzma/scanlzma.c +++ b/extra/scanlzma/scanlzma.c @@ -37,6 +37,10 @@ /* 5 8 Uncompressed size (little endian). -1 means unknown size */ /* 13 Compressed data */ +#include <stdlib.h> +#include <stdio.h> +#include <string.h> + #define BUFSIZE 4096 int find_lzma_header(unsigned char *buf) { @@ -48,7 +52,7 @@ int find_lzma_header(unsigned char *buf) { } int main(int argc, char *argv[]) { - char buf[BUFSIZE]; + unsigned char buf[BUFSIZE]; int ret, i, numlzma, blocks=0; if (argc != 2) { |