From: tb Date: Sun, 16 Apr 2023 12:01:15 +0000 (+0000) Subject: Use more usual version of inlined nitems(). No binary change. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e6919daed04f774b95039ed7fe1ea6ffd7b98a10;p=openbsd Use more usual version of inlined nitems(). No binary change. --- 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)