1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

extra/scanlzma: Fix compiler warnings.

This commit is contained in:
Lasse Collin 2018-04-29 18:48:00 +03:00
parent c5c7ceb08a
commit cee3021d30

View file

@ -37,6 +37,10 @@
/* 5 8 Uncompressed size (little endian). -1 means unknown size */ /* 5 8 Uncompressed size (little endian). -1 means unknown size */
/* 13 Compressed data */ /* 13 Compressed data */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define BUFSIZE 4096 #define BUFSIZE 4096
int find_lzma_header(unsigned char *buf) { int find_lzma_header(unsigned char *buf) {
@ -48,7 +52,7 @@ int find_lzma_header(unsigned char *buf) {
} }
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
char buf[BUFSIZE]; unsigned char buf[BUFSIZE];
int ret, i, numlzma, blocks=0; int ret, i, numlzma, blocks=0;
if (argc != 2) { if (argc != 2) {