summaryrefslogtreecommitdiff
path: root/e_os.h
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2017-03-26 23:29:41 +0200
committerRich Salz <rsalz@openssl.org>2017-06-20 13:49:43 -0400
commit26dc47f3c44c7fb4488d1becaf997737486f4922 (patch)
tree529900a2d873d57cf940a12fb9ed011a7f847a4f /e_os.h
parentaa8f3d76fcf1502586435631be16faa1bef3cdf7 (diff)
downloadopenssl-new-26dc47f3c44c7fb4488d1becaf997737486f4922.tar.gz
Add parentheses around macro argument of OSSL_NELEM.
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3039)
Diffstat (limited to 'e_os.h')
-rw-r--r--e_os.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/e_os.h b/e_os.h
index 49a0c3ed18..d331044ead 100644
--- a/e_os.h
+++ b/e_os.h
@@ -539,7 +539,7 @@ struct servent *getservbyname(const char *name, const char *proto);
# endif
/* end vxworks */
-#define OSSL_NELEM(x) (sizeof(x)/sizeof(x[0]))
+#define OSSL_NELEM(x) (sizeof(x)/sizeof((x)[0]))
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
# define CRYPTO_memcmp memcmp