diff options
Diffstat (limited to 'tar.c')
-rw-r--r-- | tar.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 | 67 | enum { 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 */ |
70 | struct TarHeader | 70 | struct 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 | 97 | static const int TAR_MAGIC_LEN = 6; |
98 | #define TAR_VERSION_LEN 2 | 98 | static const int TAR_VERSION_LEN = 2; |
99 | #define TAR_BLOCK_SIZE 512 | 99 | static 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 */ |
102 | enum TarFileType | 102 | enum TarFileType |