Skip to content

Commit

Permalink
src: use named struct instead of typedef
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
tniessen authored and danielleadams committed Jul 26, 2022
1 parent 100f6de commit bb51290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crypto/crypto_groups.h
Expand Up @@ -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)
Expand Down

0 comments on commit bb51290

Please sign in to comment.