Mercurial > hg > dmlib
changeset 1031:f7863608d84c
Cleanup, remove debug code.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 01 Mar 2015 16:26:47 +0200 |
parents | a76056297006 |
children | f8d75a51de2c |
files | tools/packed.c |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/packed.c Sun Mar 01 16:20:44 2015 +0200 +++ b/tools/packed.c Sun Mar 01 16:26:47 2015 +0200 @@ -267,13 +267,13 @@ int dmPackAddFile(DMPackFile * pack, const char *filename, const Uint32 flags, const BOOL compress, int level, DMPackEntry ** ppEntry) { - z_stream zstr; Uint64 startOffs, outSize; - FILE *inFile = NULL, *tmpFile; Uint8 *inBuffer = NULL, *outBuffer = NULL; DMPackEntry entry, *node; + FILE *inFile = NULL; int ret = DMERR_OK; BOOL zinit = FALSE; + z_stream zstr; *ppEntry = NULL; @@ -321,8 +321,6 @@ } zinit = TRUE; - tmpFile = fopen("dump.bin", "wb"); - // Initialize compression streams zret = Z_OK; while (!feof(inFile) && zret == Z_OK) @@ -338,7 +336,6 @@ if (zret == Z_OK && zstr.total_out > 0) { outSize += zstr.total_out; - fwrite(outBuffer, sizeof(Uint8), zstr.total_out, tmpFile); if (fwrite(outBuffer, sizeof(Uint8), zstr.total_out, pack->file) != zstr.total_out) { ret = DMERR_FWRITE; @@ -346,7 +343,6 @@ } } } - fclose(tmpFile); } // Create directory entry