aboutsummaryrefslogtreecommitdiff
path: root/tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'tar.c')
-rw-r--r--tar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tar.c b/tar.c
index 2699550ec..51a857d71 100644
--- a/tar.c
+++ b/tar.c
@@ -64,7 +64,7 @@ extern int gunzip_init();
64#define MINOR(dev) ((dev)&0xff) 64#define MINOR(dev) ((dev)&0xff)
65#endif 65#endif
66 66
67#define NAME_SIZE 100 67enum { NAME_SIZE = 100 }; /* because gcc won't let me use 'static const int' */
68 68
69/* POSIX tar Header Block, from POSIX 1003.1-1990 */ 69/* POSIX tar Header Block, from POSIX 1003.1-1990 */
70struct TarHeader 70struct TarHeader
@@ -94,9 +94,9 @@ typedef struct TarHeader TarHeader;
94/* A few useful constants */ 94/* A few useful constants */
95#define TAR_MAGIC "ustar" /* ustar and a null */ 95#define TAR_MAGIC "ustar" /* ustar and a null */
96#define TAR_VERSION " " /* Be compatable with GNU tar format */ 96#define TAR_VERSION " " /* Be compatable with GNU tar format */
97#define TAR_MAGIC_LEN 6 97static const int TAR_MAGIC_LEN = 6;
98#define TAR_VERSION_LEN 2 98static const int TAR_VERSION_LEN = 2;
99#define TAR_BLOCK_SIZE 512 99static const int TAR_BLOCK_SIZE = 512;
100 100
101/* A nice enum with all the possible tar file content types */ 101/* A nice enum with all the possible tar file content types */
102enum TarFileType 102enum TarFileType