From 5f45b7d53361bd32ce390e12f814660a98f86aa9 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 6 Oct 2017 13:15:28 +0200 Subject: use appropriate integer types Mainly found with clang -Wconversion -Wshorten-64-to-32. --- mlist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mlist.c') diff --git a/mlist.c b/mlist.c index 085fe7d..ddc23c9 100644 --- a/mlist.c +++ b/mlist.c @@ -109,7 +109,8 @@ struct linux_dirent64 { void listdir(char *dir) { - int fd, nread; + int fd; + ssize_t nread; char buf[BUF_SIZE]; struct linux_dirent64 *d; int bpos; -- cgit 1.4.1