]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
memzero.h: Remove outdated comments
authorAlejandro Colomar <alx@kernel.org>
Sun, 30 Jul 2023 11:24:43 +0000 (13:24 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 1 Sep 2023 07:39:23 +0000 (09:39 +0200)
These comments were wrong.  Remove them instead of fixing them, since
now that we have this small header file, it's much easier to follow the
preprocessor conditionals.

Cc: Christian Göttsche <cgzones@googlemail.com>
Cc: Serge Hallyn <serge@hallyn.com>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/memzero.h

index 00000b9c4a9673e0b069414dc467831f311f7e86..49ddecbcdf6b45914a40ec71e869702628bcad8d 100644 (file)
 
 #ifdef HAVE_MEMSET_EXPLICIT
 # define memzero(ptr, size) memset_explicit((ptr), 0, (size))
-#elif defined HAVE_EXPLICIT_BZERO      /* !HAVE_MEMSET_S */
+#elif defined HAVE_EXPLICIT_BZERO
 # define memzero(ptr, size) explicit_bzero((ptr), (size))
-#else                                  /* !HAVE_MEMSET_S && HAVE_EXPLICIT_BZERO */
+#else
 static inline void memzero(void *ptr, size_t size)
 {
        ptr = memset(ptr, '\0', size);
        __asm__ __volatile__ ("" : : "r"(ptr) : "memory");
 }
-#endif                                 /* !HAVE_MEMSET_S && !HAVE_EXPLICIT_BZERO */
+#endif
 
 #define strzero(s) memzero(s, strlen(s))       /* warning: evaluates twice */