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,12 +421,12 @@ mmap_resize_method(mmap_object *self,
return NULL; return NULL;
#else #else
} else { } else {
void *newmap;
if (ftruncate(self->fd, new_size) == -1) { if (ftruncate(self->fd, new_size) == -1) {
PyErr_SetFromErrno(mmap_module_error); PyErr_SetFromErrno(mmap_module_error);
return NULL; return NULL;
} }
void *newmap;
#ifdef MREMAP_MAYMOVE #ifdef MREMAP_MAYMOVE
newmap = mremap(self->data, self->size, new_size, MREMAP_MAYMOVE); newmap = mremap(self->data, self->size, new_size, MREMAP_MAYMOVE);