diff options
| author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 14:04:41 -0800 |
|---|---|---|
| committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 14:04:41 -0800 |
| commit | a1e1c1b106423de09bc918502e7a51d4ffe5a4ae (patch) | |
| tree | 47b158abbad9985ee83875e28ab9a8d85a9cf72e /toolbox | |
| parent | c2d26a164fc19a6ce7cf6d0c691626bf4b5176f6 (diff) | |
| download | system_core-a1e1c1b106423de09bc918502e7a51d4ffe5a4ae.tar.gz system_core-a1e1c1b106423de09bc918502e7a51d4ffe5a4ae.tar.bz2 system_core-a1e1c1b106423de09bc918502e7a51d4ffe5a4ae.zip | |
auto import from //depot/cupcake/@132589
Diffstat (limited to 'toolbox')
| -rw-r--r-- | toolbox/mkdosfs.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/toolbox/mkdosfs.c b/toolbox/mkdosfs.c index 744aad15..9ba94090 100644 --- a/toolbox/mkdosfs.c +++ b/toolbox/mkdosfs.c @@ -387,8 +387,9 @@ mkdosfs_main(int argc, char *argv[]) exit(1); } - lseek64(fd1, 0, SEEK_SET); - loff_t length = lseek64(fd1, 0, SEEK_END); + lseek(fd1, 0, SEEK_SET); + off_t length = lseek(fd1, 0, SEEK_END); + fprintf(stderr, "lseek returned %ld\n", length); if (length > 0) { bpb.bsec = length / bpb.bps; bpb.spt = bpb.bsec; @@ -614,8 +615,8 @@ mkdosfs_main(int argc, char *argv[]) fat == 32 && bpb.bkbs != MAXU16 && bss <= bpb.bkbs && x >= bpb.bkbs) { x -= bpb.bkbs; - if (!x && lseek64(fd1, 0, SEEK_SET)) - fprintf(stderr, "lseek64 failed for %s\n", bname); + if (!x && lseek(fd1, 0, SEEK_SET)) + fprintf(stderr, "lseek failed for %s\n", bname); } if (opt_B && x < bss) { if ((n = read(fd1, img, bpb.bps)) == -1) |
