From 6a25acb8dc7ee3a155b61c873c24a1226eb95305 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Fri, 23 Aug 2013 18:24:52 +0200 Subject: [PATCH] Fixes inode assignenment in nix architectures different than Linux. --- unix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unix.c b/unix.c index a4007fd3..41912895 100644 --- a/unix.c +++ b/unix.c @@ -160,7 +160,9 @@ int filephy(const char* path, struct stat* st, uint64_t* physical) (void)st; /* not used here */ #else /* In a generic Unix uses the inode as fake physical address */ - physical = st->st_ino; + *physical = st->st_ino; + + (void)path; /* not used here */ #endif return 0;