[PATCH] Fix several gcc4 signedness warnings

Here is a patch that fixes several gcc4 warnings about different signedness,
all between char and unsigned char. I tried to keep the patch minimal
so resertod to casts in three places.

Signed-off-by: Mika Kukkonen <mikukkon@iki.fi>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Mika Kukkonen
2005-06-21 23:04:33 +03:00
committed by Linus Torvalds
parent dc14841102
commit d565b3412a
5 changed files with 12 additions and 12 deletions

View File

@ -430,8 +430,8 @@ int main(int argc, char **argv)
if (!archive_time)
archive_time = time(NULL);
if (basedir)
write_header("0", TYPEFLAG_DIR, NULL, NULL, basedir, 040755,
NULL, 0);
write_header((unsigned char *)"0", TYPEFLAG_DIR, NULL, NULL,
basedir, 040755, NULL, 0);
traverse_tree(buffer, size, NULL);
free(buffer);
write_trailer();