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/encode.c | |
parent | 8a3e8261c7a4c8893cf66e30ce6f3a16d00490df (diff) | |
download | hurd-81711ef8cd219acd030a873ec4452671daeaaa5a.tar.gz hurd-81711ef8cd219acd030a873ec4452671daeaaa5a.tar.bz2 hurd-81711ef8cd219acd030a873ec4452671daeaaa5a.zip |
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/encode.c')
-rw-r--r-- | libstore/encode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libstore/encode.c b/libstore/encode.c index 834a0d16..48c5d26a 100644 --- a/libstore/encode.c +++ b/libstore/encode.c @@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ #include <string.h> +#include <sys/mman.h> #include "store.h" @@ -130,7 +131,7 @@ store_encode (const struct store *store, struct store_enc *enc) if (buf != (void *) -1) enc->data = buf; } - err = errno + err = errno; if (! err) err = (*class->encode) (store, enc); |