summaryrefslogtreecommitdiff
path: root/lib/sqfs/readdir.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-05 17:17:38 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-05 17:17:53 +0200
commita4b4c27bb01e64ff0072be78f7ddc0fa64193bfa (patch)
tree463fc886baae6b12f01c22c8a53ac94491d8a2ad /lib/sqfs/readdir.c
parentdd5d7adaa914982e8947bfe76fa3f195ed11cdb1 (diff)
Cleanup: add sqfs_* prefix to meta reader
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/readdir.c')
-rw-r--r--lib/sqfs/readdir.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/sqfs/readdir.c b/lib/sqfs/readdir.c
index 31e4c63..310929c 100644
--- a/lib/sqfs/readdir.c
+++ b/lib/sqfs/readdir.c
@@ -12,9 +12,10 @@
#include <string.h>
#include <stdio.h>
-int meta_reader_read_dir_header(meta_reader_t *m, sqfs_dir_header_t *hdr)
+int sqfs_meta_reader_read_dir_header(sqfs_meta_reader_t *m,
+ sqfs_dir_header_t *hdr)
{
- if (meta_reader_read(m, hdr, sizeof(*hdr)))
+ if (sqfs_meta_reader_read(m, hdr, sizeof(*hdr)))
return -1;
hdr->count = le32toh(hdr->count);
@@ -30,12 +31,12 @@ int meta_reader_read_dir_header(meta_reader_t *m, sqfs_dir_header_t *hdr)
return 0;
}
-sqfs_dir_entry_t *meta_reader_read_dir_ent(meta_reader_t *m)
+sqfs_dir_entry_t *sqfs_meta_reader_read_dir_ent(sqfs_meta_reader_t *m)
{
sqfs_dir_entry_t ent, *out;
uint16_t *diff_u16;
- if (meta_reader_read(m, &ent, sizeof(ent)))
+ if (sqfs_meta_reader_read(m, &ent, sizeof(ent)))
return NULL;
diff_u16 = (uint16_t *)&ent.inode_diff;
@@ -52,7 +53,7 @@ sqfs_dir_entry_t *meta_reader_read_dir_ent(meta_reader_t *m)
}
*out = ent;
- if (meta_reader_read(m, out->name, ent.size + 1)) {
+ if (sqfs_meta_reader_read(m, out->name, ent.size + 1)) {
free(out);
return NULL;
}