From d66ae58cd87c78b76652ecf750371b1e005d44de Mon Sep 17 00:00:00 2001 From: Krzysztof Halasa Date: Tue, 21 Dec 2010 00:02:02 +0100 Subject: Cosmetic fixes, including format attributes for printf() and friends. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Krzysztof HaƂasa Signed-off-by: Sascha Hauer --- commands/ls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands/ls.c') diff --git a/commands/ls.c b/commands/ls.c index 4f9c408b1d..278a8bcad2 100644 --- a/commands/ls.c +++ b/commands/ls.c @@ -32,10 +32,10 @@ static void ls_one(const char *path, struct stat *s) { char modestr[11]; - unsigned long namelen = strlen(path); + unsigned int namelen = strlen(path); mkmodestr(s->st_mode, modestr); - printf("%s %10u %*.*s\n", modestr, s->st_size, namelen, namelen, path); + printf("%s %10lu %*.*s\n", modestr, s->st_size, namelen, namelen, path); } int ls(const char *path, ulong flags) -- cgit v1.2.3