From 9fe7e0020a8e7fcb02fe33857ae0572c01f8b96b Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Sun, 1 Jul 2018 20:09:56 +0000 Subject: [PATCH] find(1): use correct type for readlink --- usr.bin/find/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/find/ls.c b/usr.bin/find/ls.c index 28e85b733bac..8c4c16ed3461 100644 --- a/usr.bin/find/ls.c +++ b/usr.bin/find/ls.c @@ -110,7 +110,7 @@ printtime(time_t ftime) static void printlink(char *name) { - int lnklen; + ssize_t lnklen; char path[MAXPATHLEN]; if ((lnklen = readlink(name, path, MAXPATHLEN - 1)) == -1) {