commit | 335ffe88bb5e6241efe85693c3f40c0bd2f81bce | [log] [tgz] |
---|---|---|
author | Armin Rigo <arigo@tunes.org> | Tue Sep 20 19:04:02 2005 +0000 |
committer | Armin Rigo <arigo@tunes.org> | Tue Sep 20 19:04:02 2005 +0000 |
tree | c1ca29ee7e0b1138451374f1d1f2139f910c8a55 | |
parent | f87902448753ece981b5df938c070320705e5dec [diff] |
C89 compliance.
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index f58e0f1..dd7c16f 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c
@@ -421,12 +421,12 @@ return NULL; #else } else { + void *newmap; + if (ftruncate(self->fd, new_size) == -1) { PyErr_SetFromErrno(mmap_module_error); return NULL; } - - void *newmap; #ifdef MREMAP_MAYMOVE newmap = mremap(self->data, self->size, new_size, MREMAP_MAYMOVE);