diff options
author | Mark Whitley <markw@lineo.com> | 2001-01-23 22:30:04 +0000 |
---|---|---|
committer | Mark Whitley <markw@lineo.com> | 2001-01-23 22:30:04 +0000 |
commit | 59ab025363d884deb2013dcaae6c968585a6ec72 (patch) | |
tree | 852d97bdc34c44dbcf29cc8b5cd9257a8c90f7b3 /archival/tar.c | |
parent | 2b8d07c590249991fae975652aae86f5fca91f81 (diff) | |
download | busybox-w32-59ab025363d884deb2013dcaae6c968585a6ec72.tar.gz busybox-w32-59ab025363d884deb2013dcaae6c968585a6ec72.tar.bz2 busybox-w32-59ab025363d884deb2013dcaae6c968585a6ec72.zip |
#define -> static const int. Also got rid of some big static buffers.
Diffstat (limited to 'archival/tar.c')
-rw-r--r-- | archival/tar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/archival/tar.c b/archival/tar.c index 2699550ec..51a857d71 100644 --- a/archival/tar.c +++ b/archival/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 | 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 |