summaryrefslogtreecommitdiff
path: root/difftool/extract.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-21 13:46:26 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-21 13:51:51 +0200
commit851bb334c29a09e3ea706cc610c67667161165fa (patch)
tree20bd3e88adaf417a1ad97436c4e711c2952f1e48 /difftool/extract.c
parente27ddbbbc74e931c1e53ec5fe1d559a1ba106032 (diff)
Consistently use old/new nomenclature in sqfsdiff
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'difftool/extract.c')
-rw-r--r--difftool/extract.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/difftool/extract.c b/difftool/extract.c
index 9fee46d..7d4fc1c 100644
--- a/difftool/extract.c
+++ b/difftool/extract.c
@@ -37,15 +37,15 @@ static int extract(data_reader_t *data, file_info_t *fi,
return 0;
}
-int extract_files(file_info_t *a, file_info_t *b, const char *path)
+int extract_files(file_info_t *old, file_info_t *new, const char *path)
{
- if (a != NULL && !a_is_dir) {
- if (extract(sqfs_a.data, a, path, 'a'))
+ if (old != NULL && !old_is_dir) {
+ if (extract(sqfs_old.data, old, path, 'a'))
return -1;
}
- if (b != NULL && !b_is_dir) {
- if (extract(sqfs_b.data, b, path, 'b'))
+ if (new != NULL && !new_is_dir) {
+ if (extract(sqfs_new.data, new, path, 'b'))
return -1;
}
return 0;