1 |
/* Setting various store fields |
/* Setting various store fields |
2 |
|
|
3 |
Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc. |
Copyright (C) 1995,96,97,2001,02 Free Software Foundation, Inc. |
4 |
Written by Miles Bader <miles@gnu.org> |
Written by Miles Bader <miles@gnu.org> |
5 |
This file is part of the GNU Hurd. |
This file is part of the GNU Hurd. |
6 |
|
|
28 |
/* Set STORE's current runs list to (a copy of) RUNS and NUM_RUNS. */ |
/* Set STORE's current runs list to (a copy of) RUNS and NUM_RUNS. */ |
29 |
error_t |
error_t |
30 |
store_set_runs (struct store *store, |
store_set_runs (struct store *store, |
31 |
const struct store_run *runs, unsigned num_runs) |
const struct store_run *runs, size_t num_runs) |
32 |
{ |
{ |
33 |
unsigned size = num_runs * sizeof (struct store_run); |
unsigned size = num_runs * sizeof (struct store_run); |
34 |
struct store_run *copy = malloc (size); |
struct store_run *copy = malloc (size); |