diff options
author | Aaron Lehmann <aaronl@vitelius.com> | 2002-08-21 13:11:34 +0000 |
---|---|---|
committer | Aaron Lehmann <aaronl@vitelius.com> | 2002-08-21 13:11:34 +0000 |
commit | 8fc5d6d2daec8acc1fe2f00d9b8edaf91edd8687 (patch) | |
tree | 0a4fd753e38c3f79ed6a6eb749a5e24f1e08f4a2 | |
parent | 6fdacc74f0d18c9eba84ec827d1a56c087a415a1 (diff) | |
download | busybox-w32-8fc5d6d2daec8acc1fe2f00d9b8edaf91edd8687.tar.gz busybox-w32-8fc5d6d2daec8acc1fe2f00d9b8edaf91edd8687.tar.bz2 busybox-w32-8fc5d6d2daec8acc1fe2f00d9b8edaf91edd8687.zip |
Tar inlining, #if 0 out unused function
-rw-r--r-- | archival/tar.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/archival/tar.c b/archival/tar.c index 2aa5f0788..b68882b52 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -142,7 +142,7 @@ enum TarFileType | |||
142 | typedef enum TarFileType TarFileType; | 142 | typedef enum TarFileType TarFileType; |
143 | 143 | ||
144 | /* Might be faster (and bigger) if the dev/ino were stored in numeric order;) */ | 144 | /* Might be faster (and bigger) if the dev/ino were stored in numeric order;) */ |
145 | static void | 145 | extern inline void |
146 | addHardLinkInfo (HardLinkInfo **hlInfoHeadPtr, dev_t dev, ino_t ino, | 146 | addHardLinkInfo (HardLinkInfo **hlInfoHeadPtr, dev_t dev, ino_t ino, |
147 | short linkCount, const char *name) | 147 | short linkCount, const char *name) |
148 | { | 148 | { |
@@ -180,7 +180,7 @@ freeHardLinkInfo (HardLinkInfo **hlInfoHeadPtr) | |||
180 | } | 180 | } |
181 | 181 | ||
182 | /* Might be faster (and bigger) if the dev/ino were stored in numeric order;) */ | 182 | /* Might be faster (and bigger) if the dev/ino were stored in numeric order;) */ |
183 | static HardLinkInfo * | 183 | extern inline HardLinkInfo * |
184 | findHardLinkInfo (HardLinkInfo *hlInfo, dev_t dev, ino_t ino) | 184 | findHardLinkInfo (HardLinkInfo *hlInfo, dev_t dev, ino_t ino) |
185 | { | 185 | { |
186 | while(hlInfo) { | 186 | while(hlInfo) { |
@@ -226,7 +226,7 @@ static int putOctal (char *cp, int len, long value) | |||
226 | } | 226 | } |
227 | 227 | ||
228 | /* Write out a tar header for the specified file/directory/whatever */ | 228 | /* Write out a tar header for the specified file/directory/whatever */ |
229 | static int | 229 | extern inline int |
230 | writeTarHeader(struct TarBallInfo *tbInfo, const char *header_name, | 230 | writeTarHeader(struct TarBallInfo *tbInfo, const char *header_name, |
231 | const char *real_name, struct stat *statbuf) | 231 | const char *real_name, struct stat *statbuf) |
232 | { | 232 | { |
@@ -320,7 +320,7 @@ writeTarHeader(struct TarBallInfo *tbInfo, const char *header_name, | |||
320 | } | 320 | } |
321 | 321 | ||
322 | # if defined CONFIG_FEATURE_TAR_EXCLUDE | 322 | # if defined CONFIG_FEATURE_TAR_EXCLUDE |
323 | static int exclude_file(char **excluded_files, const char *file) | 323 | extern inline int exclude_file(char **excluded_files, const char *file) |
324 | { | 324 | { |
325 | int i; | 325 | int i; |
326 | 326 | ||
@@ -448,7 +448,7 @@ static int writeFileToTarball(const char *fileName, struct stat *statbuf, void* | |||
448 | return( TRUE); | 448 | return( TRUE); |
449 | } | 449 | } |
450 | 450 | ||
451 | static int writeTarFile(const char* tarName, int verboseFlag, char **argv, | 451 | extern inline int writeTarFile(const char* tarName, int verboseFlag, char **argv, |
452 | char** excludeList, int gzip) | 452 | char** excludeList, int gzip) |
453 | { | 453 | { |
454 | #ifdef CONFIG_FEATURE_TAR_GZIP | 454 | #ifdef CONFIG_FEATURE_TAR_GZIP |
@@ -601,6 +601,7 @@ void append_file_list_to_list(char *filename, char ***name_list, int *num_of_ent | |||
601 | /* | 601 | /* |
602 | * Create a list of names that are in the include list AND NOT in the exclude lists | 602 | * Create a list of names that are in the include list AND NOT in the exclude lists |
603 | */ | 603 | */ |
604 | #if 0 /* this is unused */ | ||
604 | char **list_and_not_list(char **include_list, char **exclude_list) | 605 | char **list_and_not_list(char **include_list, char **exclude_list) |
605 | { | 606 | { |
606 | char **new_include_list = NULL; | 607 | char **new_include_list = NULL; |
@@ -636,6 +637,7 @@ char **list_and_not_list(char **include_list, char **exclude_list) | |||
636 | return(new_include_list); | 637 | return(new_include_list); |
637 | } | 638 | } |
638 | #endif | 639 | #endif |
640 | #endif | ||
639 | 641 | ||
640 | int tar_main(int argc, char **argv) | 642 | int tar_main(int argc, char **argv) |
641 | { | 643 | { |