[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:
committed by
Linus Torvalds
parent
dc14841102
commit
d565b3412a
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user