mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 12:28:19 -04:00
use %zu for off_t
svn:r1059
This commit is contained in:
parent
8b5bd77415
commit
1757cf717f
2
buffer.c
2
buffer.c
@ -1468,7 +1468,7 @@ evbuffer_add_file(struct evbuffer *outbuf, int fd,
|
|||||||
* page size to avoid mapping too much memory.
|
* page size to avoid mapping too much memory.
|
||||||
*/
|
*/
|
||||||
if (mapped == MAP_FAILED) {
|
if (mapped == MAP_FAILED) {
|
||||||
event_warn("%s: mmap(%d, %d, %llu) failed",
|
event_warn("%s: mmap(%d, %d, %zu) failed",
|
||||||
__func__, fd, 0, offset + length);
|
__func__, fd, 0, offset + length);
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user