diff options
author | allanjude <allanjude@FreeBSD.org> | 2016-04-19 02:06:02 +0000 |
---|---|---|
committer | allanjude <allanjude@FreeBSD.org> | 2016-04-19 02:06:02 +0000 |
commit | 89582307e50cf12a35b353215cbf373230d8d2ad (patch) | |
tree | e227fe78f3be06fe907ccebd72e72af3899710ae /lib | |
parent | 30f25483feeac1aec4367d90eb824f7fd324ea51 (diff) | |
download | FreeBSD-src-89582307e50cf12a35b353215cbf373230d8d2ad.zip FreeBSD-src-89582307e50cf12a35b353215cbf373230d8d2ad.tar.gz |
Unbreak the build if you enable WITH_NAND
Followup to r298230
Submitted by: Nikolai Lifanov <lifanov@mail.lifanov.com> (original version)
Sponsored by: ScaleEngine Inc.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libstand/nandfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libstand/nandfs.c b/lib/libstand/nandfs.c index b8c51e3..3d039cf 100644 --- a/lib/libstand/nandfs.c +++ b/lib/libstand/nandfs.c @@ -1024,7 +1024,7 @@ ioread(struct open_file *f, off_t pos, void *buf, u_int length) buffer = malloc(nsec * bsize); - err = (f->f_dev->dv_strategy)(f->f_devdata, F_READ, pos, + err = (f->f_dev->dv_strategy)(f->f_devdata, F_READ, pos, 0, nsec * bsize, buffer, NULL); memcpy(buf, (void *)((uintptr_t)buffer + off), length); @@ -1045,7 +1045,7 @@ nandfs_probe_sectorsize(struct open_file *f) for (i = 512; i < (16 * 1024); i <<= 1) { NANDFS_DEBUG("%d ", i); - err = (f->f_dev->dv_strategy)(f->f_devdata, F_READ, 0, i, + err = (f->f_dev->dv_strategy)(f->f_devdata, F_READ, 0, 0, i, buffer, NULL); if (err == 0) { |