diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-25 19:24:38 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-25 20:35:03 +0100 |
| commit | a984eb367c032dbe2577f01238c3d1268526be70 (patch) | |
| tree | 437fef40379b2758b129ccea39df3570fa2d145e /bin/gzip/gzip.h | |
| parent | 8834571b202cf4dc9c649cfb096c213b6ecf1566 (diff) | |
Clang-tidy fixes
Diffstat (limited to 'bin/gzip/gzip.h')
| -rw-r--r-- | bin/gzip/gzip.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/bin/gzip/gzip.h b/bin/gzip/gzip.h index 6e01f429..5258bc76 100644 --- a/bin/gzip/gzip.h +++ b/bin/gzip/gzip.h @@ -85,12 +85,11 @@ extern int method; /* compression method */ #ifdef DYN_ALLOC #define EXTERN(type, array) extern type *near array #define DECLARE(type, array, size) type *near array -#define ALLOC(type, array, size) \ - { \ - array = (type *)fcalloc((size_t)(((size) + 1L) / 2), \ - 2 * sizeof(type)); \ - if (array == NULL) \ - error("insufficient memory"); \ +#define ALLOC(type, array, size) \ + { \ + array = (type *)fcalloc((size_t)(((size) + 1L) / 2), 2 * sizeof(type)); \ + if (array == NULL) \ + error("insufficient memory"); \ } #define FREE(array) \ { \ @@ -143,10 +142,10 @@ extern long ifile_size; /* input file size, -1 for devices (debug only) */ typedef int file_t; /* Do not use stdio */ #define NO_FILE (-1) /* in memory compression */ -#define PACK_MAGIC "\037\036" /* Magic header for packed files */ -#define GZIP_MAGIC "\037\213" /* Magic header for gzip files, 1F 8B */ -#define OLD_GZIP_MAGIC "\037\236" /* Magic header for gzip 0.5 = freeze 1.x */ -#define LZH_MAGIC "\037\240" /* Magic header for SCO LZH Compress files*/ +#define PACK_MAGIC "\037\036" /* Magic header for packed files */ +#define GZIP_MAGIC "\037\213" /* Magic header for gzip files, 1F 8B */ +#define OLD_GZIP_MAGIC "\037\236" /* Magic header for gzip 0.5 = freeze 1.x */ +#define LZH_MAGIC "\037\240" /* Magic header for SCO LZH Compress files*/ #define PKZIP_MAGIC "\120\113\003\004" /* Magic header for pkzip files */ /* gzip flag byte */ |
