Skip to content

Commit

Permalink
[netif] use fix type to u8 for addr_gen_mode (#9147)
Browse files Browse the repository at this point in the history
From the kernel code, addr_gen_mode should be uint8_t.
  • Loading branch information
bukepo committed Jun 7, 2023
1 parent b69dfef commit fd46c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/posix/platform/netif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,7 @@ static void SetAddrGenModeToNone(void)
char buf[512];
} req;

const enum in6_addr_gen_mode mode = IN6_ADDR_GEN_MODE_NONE;
const uint8_t mode = IN6_ADDR_GEN_MODE_NONE;

memset(&req, 0, sizeof(req));

Expand Down

0 comments on commit fd46c16

Please sign in to comment.