src: use named struct instead of typedef

PR-URL: https://github.com/nodejs/node/pull/43881
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Tobias Nießen 2022-07-18 18:29:40 +02:00 committed by GitHub
parent 5d8281e81d
commit aeb1c1b1f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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<const char*>(var)