C89 compliance.

This commit is contained in:
Armin Rigo 2005-09-20 19:04:02 +00:00
parent f879024487
commit 335ffe88bb
1 changed files with 2 additions and 2 deletions

View File

@ -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