aboutsummaryrefslogtreecommitdiff
path: root/difftool/util.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-20 16:31:31 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-20 18:34:17 +0200
commitd57efdfa0b7420dabf97335ffe3a8b391b9f54b3 (patch)
treef42eed71fc5c4a07ef03696c9953da7d4e860095 /difftool/util.c
parentc106a290ed07fa89b39072925b1a2258071511a8 (diff)
Remove sqfs reader & fstree usage from sqfsdiff
Replace with direct usage of the dir reader and lower level data structures. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'difftool/util.c')
-rw-r--r--difftool/util.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/difftool/util.c b/difftool/util.c
index 2883a2f..5e9161a 100644
--- a/difftool/util.c
+++ b/difftool/util.c
@@ -6,9 +6,9 @@
*/
#include "sqfsdiff.h"
-char *node_path(tree_node_t *n)
+char *node_path(const sqfs_tree_node_t *n)
{
- char *path = fstree_get_path(n);
+ char *path = sqfs_tree_node_get_path(n);
if (path == NULL) {
perror("get path");
@@ -16,8 +16,7 @@ char *node_path(tree_node_t *n)
}
if (canonicalize_name(path)) {
- fputs("[BUG] canonicalization of fstree_get_path failed!!\n",
- stderr);
+ fprintf(stderr, "failed to canonicalization '%s'\n", path);
free(path);
return NULL;
}