Diffstat (limited to 'ui-tree.c')
| -rw-r--r-- | ui-tree.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -62,8 +62,7 @@ static void print_object(const unsigned char *sha1, char *path) static int ls_item(const unsigned char *sha1, const char *base, int baselen, - const char *pathname, unsigned int mode, int stage, - void *cbdata) + const char *pathname, unsigned int mode, int stage) { char *name; char *fullpath; @@ -144,14 +143,13 @@ static void ls_tree(const unsigned char *sha1, char *path) } ls_head(); - read_tree_recursive(tree, "", 0, 1, NULL, ls_item, NULL); + read_tree_recursive(tree, "", 0, 1, NULL, ls_item); ls_tail(); } static int walk_tree(const unsigned char *sha1, const char *base, int baselen, - const char *pathname, unsigned mode, int stage, - void *cbdata) + const char *pathname, unsigned mode, int stage) { static int state; static char buffer[PATH_MAX]; @@ -178,7 +176,7 @@ static int walk_tree(const unsigned char *sha1, const char *base, int baselen, return 0; } } - ls_item(sha1, base, baselen, pathname, mode, stage, NULL); + ls_item(sha1, base, baselen, pathname, mode, stage); return 0; } @@ -218,6 +216,6 @@ void cgit_print_tree(const char *rev, char *path) } match_path = path; - read_tree_recursive(commit->tree, NULL, 0, 0, paths, walk_tree, NULL); + read_tree_recursive(commit->tree, NULL, 0, 0, paths, walk_tree); ls_tail(); } |