summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-05 03:14:39 +0000
committerEric Andersen <andersen@codepoet.org>2001-04-05 03:14:39 +0000
commite76c3b08e105147e3cef7e8d38d65da2fac6b2e1 (patch)
tree87f705b9e4e4e48700ac61e9538c637ae2b395a7 /coreutils
parent3c0364f3911ec9f43e1c8c96ec2c8e30b1b52c47 (diff)
downloadbusybox-w32-e76c3b08e105147e3cef7e8d38d65da2fac6b2e1.tar.gz
busybox-w32-e76c3b08e105147e3cef7e8d38d65da2fac6b2e1.tar.bz2
busybox-w32-e76c3b08e105147e3cef7e8d38d65da2fac6b2e1.zip
A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a few
shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can handle them sanely and all at once. -Erik
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/dd.c4
-rw-r--r--coreutils/ls.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c
index 3f58929ba..297d0ab51 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -151,8 +151,8 @@ int dd_main(int argc, char **argv)
151 out_part++; 151 out_part++;
152 } 152 }
153 153
154 fprintf(statusfp, "%d+%d records in\n", in_full, in_part); 154 fprintf(statusfp, "%ld+%ld records in\n", (long)in_full, (long)in_part);
155 fprintf(statusfp, "%d+%d records out\n", out_full, out_part); 155 fprintf(statusfp, "%ld+%ld records out\n", (long)out_full, (long)out_part);
156 156
157 return EXIT_SUCCESS; 157 return EXIT_SUCCESS;
158} 158}
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 49470e9f7..0b89ecce1 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -626,7 +626,7 @@ static int list_single(struct dnode *dn)
626 column += 10; 626 column += 10;
627 break; 627 break;
628 case LIST_NLINKS: 628 case LIST_NLINKS:
629 printf("%4d ", dn->dstat.st_nlink); 629 printf("%4ld ", (long)dn->dstat.st_nlink);
630 column += 10; 630 column += 10;
631 break; 631 break;
632 case LIST_ID_NAME: 632 case LIST_ID_NAME: