diff options
author | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-01-23 22:30:04 +0000 |
---|---|---|
committer | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-01-23 22:30:04 +0000 |
commit | b2b4893698607c194acfd2e355154b54273b8880 (patch) | |
tree | 852d97bdc34c44dbcf29cc8b5cd9257a8c90f7b3 /tar.c | |
parent | fc2d2e3371dbe137decc3aa2065acd6140226f94 (diff) | |
download | busybox-w32-b2b4893698607c194acfd2e355154b54273b8880.tar.gz busybox-w32-b2b4893698607c194acfd2e355154b54273b8880.tar.bz2 busybox-w32-b2b4893698607c194acfd2e355154b54273b8880.zip |
#define -> static const int. Also got rid of some big static buffers.
git-svn-id: svn://busybox.net/trunk/busybox@1642 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 |