--- uae/src/zfile.c 2018/04/24 16:53:05 1.1.1.7 +++ uae/src/zfile.c 2018/04/24 17:16:45 1.1.1.9 @@ -9,7 +9,6 @@ #include "sysconfig.h" #include "sysdeps.h" -#include "config.h" #include "options.h" #include "zfile.h" @@ -27,7 +26,7 @@ struct zfile FILE *f; char name[L_tmpnam]; }; - + static struct zfile *zlist = 0; /* @@ -36,7 +35,7 @@ static struct zfile *zlist = 0; void zfile_exit (void) { struct zfile *l; - + while ((l = zlist)) { zlist = l->next; fclose (l->f); @@ -79,8 +78,8 @@ static int gunzip (const char *decompres { char cmd[1024]; char *ext = strrchr (src, '.'); - if (!dst) - return 1; + if (!dst) + return 1; #if defined(AMIGA) sprintf (cmd, "%s -c -d -S %s \"%s\" > \"%s\"", decompress, ext, src, dst); #else @@ -95,7 +94,7 @@ static int gunzip (const char *decompres static int bunzip (const char *decompress, const char *src, const char *dst) { char cmd[1024]; - if (!dst) + if (!dst) return 1; sprintf (cmd, "%s -c -d \"%s\" > \"%s\"", decompress, src, dst); return !system (cmd); @@ -147,9 +146,9 @@ static int uncompress (const char *name, || strcasecmp (ext, "roz") == 0) return gunzip ("gzip", name, dest); if (strcasecmp (ext, "bz") == 0) - return bunzip ("bzip", name, dest); + return bunzip ("bzip", name, dest); if (strcasecmp (ext, "bz2") == 0) - return bunzip ("bzip2", name, dest); + return bunzip ("bzip2", name, dest); #ifndef __DOS__ if (strcasecmp (ext, "lha") == 0 @@ -170,11 +169,11 @@ static int uncompress (const char *name, if (access (strcat (strcpy (nam, name), ".bz"), 0) >= 0 || access (strcat (strcpy (nam, name), ".BZ"), 0) >= 0) - return bunzip ("bzip", nam, dest); + return bunzip ("bzip", nam, dest); if (access (strcat (strcpy (nam, name), ".bz2"), 0) >= 0 || access (strcat (strcpy (nam, name), ".BZ2"), 0) >= 0) - return bunzip ("bzip2", nam, dest); + return bunzip ("bzip2", nam, dest); #ifndef __DOS__ if (access (strcat (strcpy (nam, name), ".lha"), 0) >= 0