diff options
author | Miles Bader <miles@gnu.org> | 1996-09-23 22:36:00 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-09-23 22:36:00 +0000 |
commit | 2dde4f510aafb25fddd9d9a0fc045dc9eec75b7c (patch) | |
tree | 77c28a9f86503924b41618390203185d5fe2c667 /storeio/storeio.c | |
parent | 6ec248aa2963f0facb6d368eb78ba0ddb57aa86d (diff) |
(trivfs_append_args):
Make ARGZ_LEN of type `size_t *'.
Narrow scope of BUF.
<argz.h>:
New include.
Diffstat (limited to 'storeio/storeio.c')
-rw-r--r-- | storeio/storeio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/storeio/storeio.c b/storeio/storeio.c index f2edb29f..fcf39bee 100644 --- a/storeio/storeio.c +++ b/storeio/storeio.c @@ -23,6 +23,7 @@ #include <assert.h> #include <fcntl.h> #include <argp.h> +#include <argz.h> #include <hurd.h> #include <hurd/ports.h> @@ -153,13 +154,13 @@ void main (int argc, char *argv[]) error_t trivfs_append_args (struct trivfs_control *trivfs_control, - char **argz, size_t argz_len) + char **argz, size_t *argz_len) { error_t err = 0; - char buf[40]; if (rdev) { + char buf[40]; snprintf (buf, sizeof buf, "--rdev=%d,%d", (rdev >> 8), rdev & 0xFF); err = argz_add (argz, argz_len, buf); } |