commit: d06c479d736e7d2505698c2533f580b97812c2c2
parent ca1015244c433be3bb0c857a092f8dd747e862d1
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 26 Dec 2024 08:03:17 +0100
configure.d/sendfile_linux: use (off_t)0 instead of NULL
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.d/sendfile_linux.c b/configure.d/sendfile_linux.c
@@ -12,7 +12,7 @@ main(void)
{
int fd_in = 0;
int fd_out = 1;
- off_t *offset = NULL;
+ off_t *offset = (off_t)0;
size_t len = 42;
ssize_t ret = sendfile(fd_out, fd_in, offset, len);