aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
Diffstat (limited to 'archival')
-rw-r--r--archival/tar.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/archival/tar.c b/archival/tar.c
index c49434713..160731ea9 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -115,7 +115,7 @@ enum TarFileType {
115typedef enum TarFileType TarFileType; 115typedef enum TarFileType TarFileType;
116 116
117/* Might be faster (and bigger) if the dev/ino were stored in numeric order;) */ 117/* Might be faster (and bigger) if the dev/ino were stored in numeric order;) */
118static inline void addHardLinkInfo(HardLinkInfo ** hlInfoHeadPtr, 118static void addHardLinkInfo(HardLinkInfo ** hlInfoHeadPtr,
119 struct stat *statbuf, 119 struct stat *statbuf,
120 const char *name) 120 const char *name)
121{ 121{
@@ -149,7 +149,7 @@ static void freeHardLinkInfo(HardLinkInfo ** hlInfoHeadPtr)
149} 149}
150 150
151/* Might be faster (and bigger) if the dev/ino were stored in numeric order;) */ 151/* Might be faster (and bigger) if the dev/ino were stored in numeric order;) */
152static inline HardLinkInfo *findHardLinkInfo(HardLinkInfo * hlInfo, struct stat *statbuf) 152static HardLinkInfo *findHardLinkInfo(HardLinkInfo * hlInfo, struct stat *statbuf)
153{ 153{
154 while (hlInfo) { 154 while (hlInfo) {
155 if ((statbuf->st_ino == hlInfo->ino) && (statbuf->st_dev == hlInfo->dev)) 155 if ((statbuf->st_ino == hlInfo->ino) && (statbuf->st_dev == hlInfo->dev))
@@ -194,7 +194,7 @@ static int putOctal(char *cp, int len, long value)
194} 194}
195 195
196/* Write out a tar header for the specified file/directory/whatever */ 196/* Write out a tar header for the specified file/directory/whatever */
197static inline int writeTarHeader(struct TarBallInfo *tbInfo, 197static int writeTarHeader(struct TarBallInfo *tbInfo,
198 const char *header_name, const char *real_name, struct stat *statbuf) 198 const char *header_name, const char *real_name, struct stat *statbuf)
199{ 199{
200 long chksum = 0; 200 long chksum = 0;
@@ -294,7 +294,7 @@ static inline int writeTarHeader(struct TarBallInfo *tbInfo,
294} 294}
295 295
296# ifdef CONFIG_FEATURE_TAR_FROM 296# ifdef CONFIG_FEATURE_TAR_FROM
297static inline int exclude_file(const llist_t *excluded_files, const char *file) 297static int exclude_file(const llist_t *excluded_files, const char *file)
298{ 298{
299 while (excluded_files) { 299 while (excluded_files) {
300 if (excluded_files->data[0] == '/') { 300 if (excluded_files->data[0] == '/') {
@@ -411,7 +411,7 @@ static int writeFileToTarball(const char *fileName, struct stat *statbuf,
411 return (TRUE); 411 return (TRUE);
412} 412}
413 413
414static inline int writeTarFile(const int tar_fd, const int verboseFlag, 414static int writeTarFile(const int tar_fd, const int verboseFlag,
415 const unsigned long dereferenceFlag, const llist_t *include, 415 const unsigned long dereferenceFlag, const llist_t *include,
416 const llist_t *exclude, const int gzip) 416 const llist_t *exclude, const int gzip)
417{ 417{