From 84ce1bc019392270456ce34372579bc777d21666 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 1 Jun 2011 10:36:42 +0100 Subject: [PATCH] Fix some printf format warnings when -Wall is enabled. --- helper/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/init.c b/helper/init.c index 514146f..0ca3135 100644 --- a/helper/init.c +++ b/helper/init.c @@ -291,9 +291,9 @@ show_directory (const char *dirname) } while ((d = readdir (dir)) != NULL) { - fprintf (stderr, "%5d %c %-16s", d->d_ino, dirtype (d->d_type), d->d_name); + fprintf (stderr, "%5lu %c %-16s", d->d_ino, dirtype (d->d_type), d->d_name); if (lstat (d->d_name, &statbuf) >= 0) { - fprintf (stderr, " %06o %d %d:%d", + fprintf (stderr, " %06o %ld %d:%d", statbuf.st_mode, statbuf.st_size, statbuf.st_uid, statbuf.st_gid); if (S_ISLNK (statbuf.st_mode)) { -- 1.8.3.1