diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-11 08:06:22 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-11 08:06:22 +0000 |
commit | 81711ef8cd219acd030a873ec4452671daeaaa5a (patch) | |
tree | 32657fda476dda84901239f59aad51c9a3c3fc8d /libstore/copy.c | |
parent | 8a3e8261c7a4c8893cf66e30ce6f3a16d00490df (diff) |
1999-07-11 Thomas Bushnell, BSG <tb@mit.edu>
* argp.c (store_parsed_open): Add more braces to clarify if-else
structure.
* encode.c: Include <sys/mman.h>
* zero.c: Likewise.
* encode.c (store_encode): Repair syntax.
* copy.c (copy_read): Likewise.
* enc.c (store_enc_dealloc): Cast first arg of munmap correctly.
Diffstat (limited to 'libstore/copy.c')
-rw-r--r-- | libstore/copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstore/copy.c b/libstore/copy.c index 0c1834fa..3f838e5c 100644 --- a/libstore/copy.c +++ b/libstore/copy.c @@ -35,7 +35,7 @@ copy_read (struct store *store, /* Have to allocate memory for the return value. */ { *buf = mmap (0, amount, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); - if (*buf == (void *)-1)) + if (*buf == (void *)-1) return errno; } |