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 authored and Michaël Zasso committed 2022-08-01 16:48:25 +02:00
1 parent 3139c110dc
commit be3343aed3
1 file changed
+2 -2
+2 -2
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)