Eliminated seeks so that we work correctly on pipes, and removed reliance on
[oweals/busybox.git] / ls.c
diff --git a/ls.c b/ls.c
index 49470e9f70f37a0a46aa7e7f33e3fd7351c8cceb..8f4cae10df9428f28288d74928777e2b5e816bf2 100644 (file)
--- a/ls.c
+++ b/ls.c
@@ -626,7 +626,7 @@ static int list_single(struct dnode *dn)
                                column += 10;
                                break;
                        case LIST_NLINKS:
-                               printf("%4d ", dn->dstat.st_nlink);
+                               printf("%4ld ", (long)dn->dstat.st_nlink);
                                column += 10;
                                break;
                        case LIST_ID_NAME:
@@ -655,7 +655,7 @@ static int list_single(struct dnode *dn)
 #endif 
                                        {
 #if _FILE_OFFSET_BITS == 64
-                                               printf("%9lld ", dn->dstat.st_size);
+                                               printf("%9lld ", (long long)dn->dstat.st_size);
 #else
                                                printf("%9ld ", dn->dstat.st_size);
 #endif