aboutsummaryrefslogtreecommitdiff
path: root/bin/sqfsdiff/src
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sqfsdiff/src')
-rw-r--r--bin/sqfsdiff/src/sqfsdiff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sqfsdiff/src/sqfsdiff.c b/bin/sqfsdiff/src/sqfsdiff.c
index d789fe1..1bbf62c 100644
--- a/bin/sqfsdiff/src/sqfsdiff.c
+++ b/bin/sqfsdiff/src/sqfsdiff.c
@@ -22,9 +22,9 @@ static int open_sfqs(sqfs_state_t *state, const char *path)
memset(state, 0, sizeof(*state));
- state->file = sqfs_open_file(path, SQFS_FILE_OPEN_READ_ONLY);
+ ret = sqfs_file_open(&state->file, path, SQFS_FILE_OPEN_READ_ONLY);
if (state->file == NULL) {
- perror(path);
+ sqfs_perror(path, "open", ret);
return -1;
}