diff options
author | Roland McGrath <roland@gnu.org> | 2002-06-16 06:24:05 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-06-16 06:24:05 +0000 |
commit | 5e0bf4ed171218c8ea0aa5a2d408719a163733dc (patch) | |
tree | 416fd045bdaa4a7db5b54869c9989d6169c9041d | |
parent | 557df1c50fb1b94c2bca64a21110c1998886c8a7 (diff) |
2002-06-15 Roland McGrath <roland@frob.com>
* setup.c (page_write_file_direct): Use proper type for result param
of device_write.
-rw-r--r-- | mach-defpager/setup.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mach-defpager/setup.c b/mach-defpager/setup.c index 495a815a..8a7c3362 100644 --- a/mach-defpager/setup.c +++ b/mach-defpager/setup.c @@ -188,9 +188,13 @@ page_write_file_direct(struct file_direct *fdp, offset -= r->length; if (offset + (size >> fdp->bshift) <= r->length) - /* The first run contains the whole page. */ - return device_write (fdp->device, 0, r->start + offset, - (char *) addr, size, size_written); + { + /* The first run contains the whole page. */ + err = device_write (fdp->device, 0, r->start + offset, + (char *) addr, size, &wrote); + *size_written = wrote; + return err; + } /* Write the first part of the run. */ err = device_write (fdp->device, 0, |