Skip to content

Commit da977a5

Browse files
gasbytesdanielinux
authored andcommitted
fix mixed declaration
1 parent 445ed7c commit da977a5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/wolfip.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3386,13 +3386,13 @@ size_t wolfIP_instance_size(void)
33863386
static inline void ip_recv(struct wolfIP *s, unsigned int if_idx, struct wolfIP_ip_packet *ip,
33873387
uint32_t len)
33883388
{
3389+
#if WOLFIP_ENABLE_FORWARDING
3390+
unsigned int i;
3391+
#endif
33893392
/* validate minimum packet length
33903393
* (ethernet header+ ip header, with no options) */
33913394
if (len < sizeof(struct wolfIP_ip_packet))
33923395
return;
3393-
#if WOLFIP_ENABLE_FORWARDING
3394-
unsigned int i;
3395-
#endif
33963396
#if WOLFIP_ENABLE_LOOPBACK
33973397
if (!wolfIP_is_loopback_if(if_idx)) {
33983398
ip4 dest = ee32(ip->dst);

0 commit comments

Comments
 (0)