aboutsummaryrefslogtreecommitdiff
path: root/coreutils/sum.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-02-17 16:08:01 +0000
committerRon Yorston <rmy@pobox.com>2019-02-17 16:11:32 +0000
commitb1dcae0da4f5e9713fd54678ec42709a1744474b (patch)
tree57581923b3262e661ee2cd4ae627d66f06ca1aee /coreutils/sum.c
parent743580b4c029e200b1390075a1328ab314973bc2 (diff)
downloadbusybox-w32-b1dcae0da4f5e9713fd54678ec42709a1744474b.tar.gz
busybox-w32-b1dcae0da4f5e9713fd54678ec42709a1744474b.tar.bz2
busybox-w32-b1dcae0da4f5e9713fd54678ec42709a1744474b.zip
win32: fix POSIX build
There were a few places where changes intended for the WIN32 build also affected the POSIX build. Fix these so the result of 'make defconfig; make' for busybox-w32 is identical to upstream BusyBox.
Diffstat (limited to 'coreutils/sum.c')
-rw-r--r--coreutils/sum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/sum.c b/coreutils/sum.c
index dba8e8e76..a15d1932d 100644
--- a/coreutils/sum.c
+++ b/coreutils/sum.c
@@ -84,7 +84,7 @@ static unsigned sum_file(const char *file, unsigned type)
84 s = (r & 0xffff) + (r >> 16); 84 s = (r & 0xffff) + (r >> 16);
85 printf("%u %"LL_FMT"u %s\n", s, (total_bytes + 511) / 512, file); 85 printf("%u %"LL_FMT"u %s\n", s, (total_bytes + 511) / 512, file);
86 } else 86 } else
87 printf("%05u %5"OFF_FMT"u %s\n", s, (total_bytes + 1023) / 1024, file); 87 printf("%05u %5"LL_FMT"u %s\n", s, (total_bytes + 1023) / 1024, file);
88 return 1; 88 return 1;
89#undef buf 89#undef buf
90} 90}