summaryrefslogtreecommitdiff
path: root/tar-tree.c
diff options
context:
space:
mode:
authorMika Kukkonen <mikukkon@miku.homelinux.net>2005-06-21 20:04:33 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-21 20:30:55 (GMT)
commitd565b3412a0242e2c729bd77d18c74ecd57184dc (patch)
tree7fca6cb370ba8a446c51e0368a74d3d94f8bf564 /tar-tree.c
parentdc14841102bb364c2be200e8456146fc8df970b9 (diff)
downloadgit-d565b3412a0242e2c729bd77d18c74ecd57184dc.zip
git-d565b3412a0242e2c729bd77d18c74ecd57184dc.tar.gz
git-d565b3412a0242e2c729bd77d18c74ecd57184dc.tar.bz2
[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>
Diffstat (limited to 'tar-tree.c')
-rw-r--r--tar-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tar-tree.c b/tar-tree.c
index 4c47fc2..673ac66 100644
--- a/tar-tree.c
+++ b/tar-tree.c
@@ -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();