summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author"Vladimir N. Oleynik"2005-12-06 12:20:57 +0000
committer"Vladimir N. Oleynik"2005-12-06 12:20:57 +0000
commita62b0e7459b376d0c02c31ad250329e4da67618d (patch)
treecf99677b533bc35ae3de0290d0849241984af6eb
parent2f0a5f947a6cff90e4e1caefff892ee235cbd381 (diff)
downloadbusybox-a62b0e7459b376d0c02c31ad250329e4da67618d.zip
busybox-a62b0e7459b376d0c02c31ad250329e4da67618d.tar.gz
reduce 3 warning if compile with -W
-rw-r--r--archival/tar.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/archival/tar.c b/archival/tar.c
index e486f7f..0d3fb92 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -322,6 +322,8 @@ static inline int exclude_file(const llist_t *excluded_files, const char *file)
return 0;
}
+# else
+#define exclude_file(excluded_files, file) 0
# endif
static int writeFileToTarball(const char *fileName, struct stat *statbuf,
@@ -449,6 +451,7 @@ static inline int writeTarFile(const int tar_fd, const int verboseFlag,
/* Avoid vfork clobbering */
(void) &include;
(void) &errorFlag;
+ (void) &zip_exec;
# endif
gzipPid = vfork();
@@ -463,7 +466,7 @@ static inline int writeTarFile(const int tar_fd, const int verboseFlag,
close(gzipStatusPipe[0]);
fcntl(gzipStatusPipe[1], F_SETFD, FD_CLOEXEC); /* close on exec shows sucess */
- execlp(zip_exec, zip_exec, "-f", 0);
+ execlp(zip_exec, zip_exec, "-f", NULL);
vfork_exec_errno = errno;
close(gzipStatusPipe[1]);
@@ -479,7 +482,7 @@ static inline int writeTarFile(const int tar_fd, const int verboseFlag,
if (n == 0 && vfork_exec_errno != 0) {
errno = vfork_exec_errno;
- bb_perror_msg_and_die("Could not exec %s",zip_exec);
+ bb_perror_msg_and_die("Could not exec %s", zip_exec);
} else if ((n < 0) && (errno == EAGAIN || errno == EINTR))
continue; /* try it again */
break;