From bf4bc5cfcf6b483b9f20c1fb7315f2731d8b3562 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sat, 29 Mar 2025 01:13:16 +0100 Subject: [PATCH] xmlwf/unixfilemap.c: Simplify "(void *)0" to NULL --- expat/xmlwf/unixfilemap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/expat/xmlwf/unixfilemap.c b/expat/xmlwf/unixfilemap.c index 0cfd976b..02331c54 100644 --- a/expat/xmlwf/unixfilemap.c +++ b/expat/xmlwf/unixfilemap.c @@ -41,6 +41,7 @@ #include #include #include +#include // NULL #include #ifndef MAP_FILE @@ -93,7 +94,7 @@ filemap(const tchar *name, close(fd); return 1; } - p = mmap((void *)0, nbytes, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t)0); + p = mmap(NULL, nbytes, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t)0); if (p == (void *)-1) { tperror(name); close(fd);