diff options
author | Roland McGrath <roland@gnu.org> | 2001-08-15 06:10:39 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-08-15 06:10:39 +0000 |
commit | 5a2dc36112ef2a40bdd2a6187d998c3db4ad8f95 (patch) | |
tree | 79626cedecfd0347f024a9fc4471eaa47eb94acc /libstore/derive.c | |
parent | d77023eb04c94c402e75bb328103311a4b71c7cc (diff) |
2001-08-12 Neal H Walfield <neal@cs.uml.edu>
* copy.c (copy_read): The protocol dictates that *LEN is in
bytes, not pages.
(copy_write): Be sure that the buffer passed to vm_read is
page-aligned. When determining how much to copy, use LEN, not the
uninitialized *AMOUNT.
(copy_clone): Use memcpy, not bcopy.
* derive.c: Include <sys/types.h> and <mach.h>.
(_store_derive): Initialize STORE->wrap_src.
Diffstat (limited to 'libstore/derive.c')
-rw-r--r-- | libstore/derive.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libstore/derive.c b/libstore/derive.c index 41bcbaca..a76fbe1c 100644 --- a/libstore/derive.c +++ b/libstore/derive.c @@ -1,7 +1,7 @@ /* Calculation of various derived store fields - Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. - Written by Miles Bader <miles@gnu.ai.mit.edu> + Copyright (C) 1995-97,2001 Free Software Foundation, Inc. + Written by Miles Bader <miles@gnu.org> This file is part of the GNU Hurd. The GNU Hurd is free software; you can redistribute it and/or @@ -19,6 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ #include <assert.h> +#include <sys/types.h> +#include <mach.h> #include "store.h" @@ -34,6 +36,7 @@ _store_derive (struct store *store) /* BLOCK & SIZE */ store->blocks = 0; + store->wrap_src = 0; for (i = 0; i < num_runs; i++) { |