From 335ffe88bb5e6241efe85693c3f40c0bd2f81bce Mon Sep 17 00:00:00 2001 From: Armin Rigo Date: Tue, 20 Sep 2005 19:04:02 +0000 Subject: [PATCH] C89 compliance. --- Modules/mmapmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index f58e0f184cb..dd7c16f8a68 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -421,12 +421,12 @@ mmap_resize_method(mmap_object *self, 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);