Skip to content

Commit

Permalink
Fix tiny bugs found by the build checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Atsushi Abe committed May 17, 2024
1 parent 01bba51 commit 6f9b233
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libltfs/inc_journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ static int _by_path(const struct jentry *a, const struct jentry *b)
static inline int dig_path(char *p, struct ltfs_index *idx)
{
int ret = 0;
char *path, *filename;
char *path;

path = strdup(p);
if (! path) {
Expand Down Expand Up @@ -414,7 +414,7 @@ void incj_dump(struct ltfs_volume *vol)
printf("--------------------------------------------------------------------------------\n");
HASH_SORT(vol->journal, _by_path);
HASH_ITER(hh, vol->journal, ent, tmp) {
printf("JOURNAL: %s, %llu, %s, ", ent->id.full_path, ent->id.uid, reason[ent->reason]);
printf("JOURNAL: %s, %llu, %s, ", ent->id.full_path, (unsigned long long)ent->id.uid, reason[ent->reason]);
if (!ent->dentry)
printf("no-dentry\n");
else {
Expand Down

0 comments on commit 6f9b233

Please sign in to comment.