From: Richard W.M. Jones Date: Wed, 1 Jun 2011 09:36:42 +0000 (+0100) Subject: Fix some printf format warnings when -Wall is enabled. X-Git-Tag: 3.6~1 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=84ce1bc019392270456ce34372579bc777d21666;p=febootstrap.git Fix some printf format warnings when -Wall is enabled. --- 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)) {