summaryrefslogtreecommitdiffstats
path: root/commands/ls.c
diff options
context:
space:
mode:
authorKrzysztof Halasa <khc@pm.waw.pl>2010-12-21 00:02:02 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2010-12-21 09:02:40 +0100
commitd66ae58cd87c78b76652ecf750371b1e005d44de (patch)
tree90e82954c07e8e412f7c72d402c64b5de2f182f4 /commands/ls.c
parentb754bc4cf0f2687411e9dde3a2115a9c5b8da79a (diff)
downloadbarebox-d66ae58cd87c78b76652ecf750371b1e005d44de.tar.gz
Cosmetic fixes, including format attributes for printf() and friends.
Signed-off-by: Krzysztof HaƂasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/ls.c')
-rw-r--r--commands/ls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/ls.c b/commands/ls.c
index 4f9c408..278a8bc 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)