diff options
author | Aaron Lehmann | 2002-06-23 21:56:13 +0000 |
---|---|---|
committer | Aaron Lehmann | 2002-06-23 21:56:13 +0000 |
commit | 8c26fbe537cb6c71c1a492b1121c22396683cbae (patch) | |
tree | ee93762d10ee0fb5be884f1e4232419ca2f9c242 /archival | |
parent | 5b0f9e417e8b7c7a0700cea4a550843a8c1af087 (diff) | |
download | busybox-8c26fbe537cb6c71c1a492b1121c22396683cbae.zip busybox-8c26fbe537cb6c71c1a492b1121c22396683cbae.tar.gz |
remove cleanUpAndFail, and replace it with exit(). because that's what
it does unless srcMode was set, and srcMode is never set.
Diffstat (limited to 'archival')
-rw-r--r-- | archival/bunzip2.c | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/archival/bunzip2.c b/archival/bunzip2.c index d24f383..fd639a4 100644 --- a/archival/bunzip2.c +++ b/archival/bunzip2.c @@ -132,7 +132,6 @@ #define BZ_MAX_CODE_LEN 23 #define OM_TEST 3 -#define SM_F2F 3 typedef struct { char *next_in; @@ -343,24 +342,6 @@ static unsigned char myfeof(FILE *f) return(FALSE); } -static void cleanUpAndFail(int ec) -{ - int retVal; - - if ((srcMode == SM_F2F) && (opMode != OM_TEST) && deleteOutputOnInterrupt) { - if (outputHandleJustInCase != NULL) { - fclose(outputHandleJustInCase); - } - retVal = remove(outName); - if (retVal != 0) { - error_msg("%s: WARNING: deletion of output file (apparently) failed.\n", applet_name); - } - } - - exit(ec); -} - - void BZ2_hbCreateDecodeTables(int *limit, int *base, int *perm, unsigned char *length, int minLen, int maxLen, int alphaSize ) { int pp, i, j, vec; @@ -1783,15 +1764,15 @@ errhandler_io: error_msg("\n%s: I/O or other error, bailing out. " "Possible reason follows.\n", applet_name); perror(applet_name); - cleanUpAndFail(1); + exit(1); case BZ_DATA_ERROR: error_msg("\n%s: Data integrity error when decompressing.\n", applet_name); - cleanUpAndFail(2); + exit(2); case BZ_UNEXPECTED_EOF: error_msg("\n%s: Compressed file ends unexpectedly;\n\t" "perhaps it is corrupted? *Possible* reason follows.\n", applet_name); perror(applet_name); - cleanUpAndFail(2); + exit(2); case BZ_DATA_ERROR_MAGIC: if (zStream != stdin) { fclose(zStream); |