random shrinkage of statics, -60 bytes saved

This commit is contained in:
Denis Vlasenko
2007-06-21 12:43:45 +00:00
parent a80b4a0fa7
commit 931de892cc
6 changed files with 24 additions and 18 deletions

View File

@@ -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++;
}