Skip to content

Commit

Permalink
Merge pull request #7 from juergenhoetzel/gcc10
Browse files Browse the repository at this point in the history
Prevent multiple definitions of global variable IID

Thanks @juergenhoetzel
  • Loading branch information
idealeer authored Dec 6, 2021
2 parents b4ddc49 + 962bf67 commit 2b631fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/iid_modules/iid_modules.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ extern iid_module_t module_set;
extern iid_module_t module_low_fill;
// Add your module here

uint8_t IID[IP_MAX_BYTES];

iid_module_t *iid_modules[] = {
&module_full, &module_low, &module_low_fill,
&module_rand, &module_set, &module_zero,
Expand Down
2 changes: 1 addition & 1 deletion src/iid_modules/iid_modules.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#define IP_MAX_BYTES 16

uint8_t IID[IP_MAX_BYTES]; // both for ipv4 & ipv6
extern uint8_t IID[IP_MAX_BYTES]; // both for ipv4 & ipv6

// called at sender initialization
typedef int (*iid_global_init_cb)(struct state_conf *conf);
Expand Down

0 comments on commit 2b631fa

Please sign in to comment.