aboutsummaryrefslogtreecommitdiff
path: root/archival/tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/tar.c')
-rw-r--r--archival/tar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/tar.c b/archival/tar.c
index 2310e80cb..279cbfd46 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -308,7 +308,7 @@ static inline int writeTarHeader(struct TarBallInfo *tbInfo,
308 if (tbInfo->verboseFlag) { 308 if (tbInfo->verboseFlag) {
309 FILE *vbFd = stdout; 309 FILE *vbFd = stdout;
310 310
311 if (tbInfo->tarFd == fileno(stdout)) /* If the archive goes to stdout, verbose to stderr */ 311 if (tbInfo->tarFd == STDOUT_FILENO) /* If the archive goes to stdout, verbose to stderr */
312 vbFd = stderr; 312 vbFd = stderr;
313 313
314 fprintf(vbFd, "%s\n", header.name); 314 fprintf(vbFd, "%s\n", header.name);
@@ -883,7 +883,7 @@ int tar_main(int argc, char **argv)
883 } 883 }
884 884
885#ifdef CONFIG_FEATURE_CLEAN_UP 885#ifdef CONFIG_FEATURE_CLEAN_UP
886 if (tar_handle->src_fd != fileno(stdin)) { 886 if (tar_handle->src_fd != STDIN_FILENO) {
887 close(tar_handle->src_fd); 887 close(tar_handle->src_fd);
888 } 888 }
889#endif /* CONFIG_FEATURE_CLEAN_UP */ 889#endif /* CONFIG_FEATURE_CLEAN_UP */