aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-12-06 14:33:28 -0600
committerRob Landley <rob@landley.net>2019-12-06 14:33:28 -0600
commit03495651d78b8d802e1aa31e330aa93899a9386a (patch)
tree730d022b465dc304cb665f44406c65a9738fe398
parentbb391a9ce6f485d77445487fbbe57fdd690b8ca8 (diff)
downloadtoybox-03495651d78b8d802e1aa31e330aa93899a9386a.tar.gz
Squash a warning.
-rw-r--r--lib/portability.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/portability.c b/lib/portability.c
index 5428766f..28aaf824 100644
--- a/lib/portability.c
+++ b/lib/portability.c
@@ -571,7 +571,7 @@ char *fs_type_name(struct statfs *statfs)
for (i=0; i<ARRAY_LEN(nn); i++)
if (nn[i].num == statfs->f_type) s = nn[i].name;
- if (!s) sprintf(s = libbuf, "0x%x", statfs->f_type);
+ if (!s) sprintf(s = libbuf, "0x%x", (unsigned)statfs->f_type);
return s;
#endif
}