C89 compliance.
This commit is contained in:
parent
f879024487
commit
335ffe88bb
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue