summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
Diffstat (limited to 'archival')
-rw-r--r--archival/tar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/archival/tar.c b/archival/tar.c
index adcedf6..bcbb7a9 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -417,11 +417,11 @@ static int writeFileToTarball(const char *fileName, struct stat *statbuf,
header_name = fileName;
while (header_name[0] == '/') {
- static int alreadyWarned = FALSE;
+ static smallint warned;
- if (alreadyWarned == FALSE) {
+ if (!warned) {
bb_error_msg("removing leading '/' from member names");
- alreadyWarned = TRUE;
+ warned = 1;
}
header_name++;
}