aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schneider <wosch@FreeBSD.org>2022-01-31 18:30:07 +0000
committerWolfram Schneider <wosch@FreeBSD.org>2022-01-31 18:30:07 +0000
commit1536d37b2045d867d14f5206ebc84bced112e49a (patch)
treeb905187fe1a0071928f1516b0d03d6c86252a6c1
parent6f47a72d8ebf444641bda192b33eb217c9013811 (diff)
downloadsrc-1536d37b2045d867d14f5206ebc84bced112e49a.tar.gz
src-1536d37b2045d867d14f5206ebc84bced112e49a.zip
fix casting issue in error message for 32bit CPUs (e.g. armv7)
-rw-r--r--usr.bin/locate/locate/fastfind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/locate/locate/fastfind.c b/usr.bin/locate/locate/fastfind.c
index 8cc9af924531..d67c6c776f67 100644
--- a/usr.bin/locate/locate/fastfind.c
+++ b/usr.bin/locate/locate/fastfind.c
@@ -296,7 +296,7 @@ fastfind
}
if (p - path >= LOCATE_PATH_MAX)
- errx(1, "corrupted database: %s %ld", database, p - path);
+ errx(1, "corrupted database: %s %d", database, (int)(p - path));
}