From e6919daed04f774b95039ed7fe1ea6ffd7b98a10 Mon Sep 17 00:00:00 2001 From: tb Date: Sun, 16 Apr 2023 12:01:15 +0000 Subject: [PATCH] Use more usual version of inlined nitems(). No binary change. --- lib/libcrypto/x509/x509_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libcrypto/x509/x509_lib.c b/lib/libcrypto/x509/x509_lib.c index d836df7733a..3baea2bd7ae 100644 --- a/lib/libcrypto/x509/x509_lib.c +++ b/lib/libcrypto/x509/x509_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_lib.c,v 1.9 2023/04/16 11:59:50 tb Exp $ */ +/* $OpenBSD: x509_lib.c,v 1.10 2023/04/16 12:01:15 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999. */ @@ -145,7 +145,7 @@ static const X509V3_EXT_METHOD *standard_exts[] = { #endif }; -#define STANDARD_EXTENSION_COUNT (sizeof(standard_exts)/sizeof(X509V3_EXT_METHOD *)) +#define STANDARD_EXTENSION_COUNT (sizeof(standard_exts) / sizeof(standard_exts[0])) int X509V3_EXT_add(X509V3_EXT_METHOD *ext) -- 2.20.1