aboutsummaryrefslogtreecommitdiff
path: root/extras/list_files.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-06-25 14:30:31 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-06-25 17:49:36 +0200
commit4d0a62805708a6d3fe21f615ccfaa3964adbf259 (patch)
tree7c46d9c0764d2c18368644815800eabea630211a /extras/list_files.c
parentc578e5ca80370c9fc832f4a535bd8444971759e0 (diff)
Fix format string type/signedness mismatch issues
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'extras/list_files.c')
-rw-r--r--extras/list_files.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/extras/list_files.c b/extras/list_files.c
index 434601a..5f0742d 100644
--- a/extras/list_files.c
+++ b/extras/list_files.c
@@ -33,10 +33,12 @@ static void write_tree_dfs(const sqfs_tree_node_t *n)
fputs((const char *)n->name, stdout);
if (n->inode->base.type == SQFS_INODE_SLINK) {
- printf(" ⭢ %.*s", n->inode->data.slink.target_size,
+ printf(" ⭢ %.*s",
+ (int)n->inode->data.slink.target_size,
(const char *)n->inode->extra);
} else if (n->inode->base.type == SQFS_INODE_EXT_SLINK) {
- printf(" ⭢ %.*s", n->inode->data.slink_ext.target_size,
+ printf(" ⭢ %.*s",
+ (int)n->inode->data.slink_ext.target_size,
(const char *)n->inode->extra);
}