[njs] Removed useless casting to void for explicit_bzero().

Dmitry Volyntsev xeioex at nginx.com
Wed Oct 3 12:56:58 UTC 2018


details:   http://hg.nginx.org/njs/rev/26ebe2b71708
branches:  
changeset: 618:26ebe2b71708
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Wed Oct 03 15:36:36 2018 +0300
description:
Removed useless casting to void for explicit_bzero().

diffstat:

 nxt/nxt_string.h |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3528e41d10d4 -r 26ebe2b71708 nxt/nxt_string.h
--- a/nxt/nxt_string.h	Tue Oct 02 20:34:30 2018 +0300
+++ b/nxt/nxt_string.h	Wed Oct 03 15:36:36 2018 +0300
@@ -52,7 +52,7 @@ nxt_upper_case(u_char c)
 
 #if (NXT_HAVE_EXPLICIT_BZERO)
 #define nxt_explicit_memzero(buf, length)                                     \
-    (void) (explicit_bzero(buf, length))
+    explicit_bzero(buf, length)
 #elif (NXT_HAVE_EXPLICIT_MEMSET)
 #define nxt_explicit_memzero(buf, length)                                     \
     (void) (explicit_memset(buf, 0, length))


More information about the nginx-devel mailing list