Commit ccd19c09 authored by Armin Rigo's avatar Armin Rigo

C89 compliance.

parent 7ba3233c
......@@ -421,13 +421,13 @@ 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);
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment