summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2007-11-12 12:01:18 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2007-11-12 12:01:18 +0100
commitaae8d892db9a0d305d144bf56a98d656c97eee20 (patch)
treec17ddf2aa451f88a8fbac7398d2f4959c754e050
parenteea76e4cf100f8ff9b4058fe2b0a403ea01f55c0 (diff)
downloadbarebox-aae8d892db9a0d305d144bf56a98d656c97eee20.tar.gz
barebox-aae8d892db9a0d305d144bf56a98d656c97eee20.tar.xz
use unsigned for filesize in ls
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r--commands/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/ls.c b/commands/ls.c
index 6b88688426..23638d1378 100644
--- a/commands/ls.c
+++ b/commands/ls.c
@@ -34,7 +34,7 @@ static void ls_one(const char *path, struct stat *s)
unsigned long namelen = strlen(path);
mkmodestr(s->st_mode, modestr);
- printf("%s %8d %*.*s\n",modestr, s->st_size, namelen, namelen, path);
+ printf("%s %8u %*.*s\n", modestr, s->st_size, namelen, namelen, path);
}
int ls(const char *path, ulong flags)