From 3e45132697afa3944657e70bff7ced2a8ae58f5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Mon, 18 Jul 2022 18:29:40 +0200 Subject: [PATCH] src: use named struct instead of typedef PR-URL: https://github.com/nodejs/node/pull/43881 Reviewed-By: Ben Noordhuis Reviewed-By: Darshan Sen Reviewed-By: Antoine du Hamel Reviewed-By: Filip Skokan Reviewed-By: Ruben Bridgewater --- src/crypto/crypto_groups.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crypto/crypto_groups.h b/src/crypto/crypto_groups.h index c49b4356d8a919..c43569db5e6c8e 100644 --- a/src/crypto/crypto_groups.h +++ b/src/crypto/crypto_groups.h @@ -390,12 +390,12 @@ static const unsigned char group_modp18[] = { 0x80, 0xdd, 0x98, 0xed, 0xd3, 0xdf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; -typedef struct { +struct modp_group { const char* name; const char* prime; unsigned int prime_size; unsigned int gen; -} modp_group; +}; static const modp_group modp_groups[] = { #define V(var) reinterpret_cast(var)