]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Assume NULL exists
authorAlejandro Colomar <alx@kernel.org>
Fri, 2 Dec 2022 16:25:07 +0000 (17:25 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Mon, 12 Dec 2022 08:16:43 +0000 (09:16 +0100)
ISO C99 requires NULL.

Link: <https://github.com/shadow-maint/shadow/pull/600>
Cc: Christian Göttsche <cgzones@googlemail.com>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/defines.h

index 311bd7c457860b5ab076cfbbdccb6adbcd5e9f48..1cfc537bea0add490a8d3b12545d2cddac24963f 100644 (file)
@@ -243,10 +243,6 @@ static inline void memzero(void *ptr, size_t size)
 #endif
 #endif
 
-#ifndef NULL
-#define NULL ((void *) 0)
-#endif
-
 #ifdef sun                     /* hacks for compiling on SunOS */
 # ifndef SOLARIS
 extern char *strdup ();