Fixed compile of split tool under GCC 4.6 (no whatsnew)

This commit is contained in:
Alex W. Jackson 2011-09-11 02:23:54 +00:00
parent 3a0a794e21
commit bd2789b726

View File

@ -98,7 +98,6 @@ static int split_file(const char *filename, const char *basename, UINT32 splitsi
void *splitbuffer = NULL; void *splitbuffer = NULL;
int index, partnum; int index, partnum;
UINT64 totallength; UINT64 totallength;
UINT32 totalparts;
file_error filerr; file_error filerr;
int error = 1; int error = 1;
@ -130,7 +129,6 @@ static int split_file(const char *filename, const char *basename, UINT32 splitsi
fprintf(stderr, "Fatal error: too many splits (maximum is %d)\n", MAX_PARTS); fprintf(stderr, "Fatal error: too many splits (maximum is %d)\n", MAX_PARTS);
goto cleanup; goto cleanup;
} }
totalparts = totallength / splitsize;
// allocate a buffer for reading // allocate a buffer for reading
splitbuffer = malloc(splitsize); splitbuffer = malloc(splitsize);