net/ipforward/ipv4_forward.c: Correct some errors introduced with commit a52ceac13e
. Noted by Adam Porter.
This commit is contained in:
parent
f6b80dd0f9
commit
c5066f9f4c
|
@ -152,10 +152,9 @@ static int ipv4_hdrsize(FAR struct ipv4_hdr_s *ipv4)
|
|||
|
||||
static int ipv4_decr_ttl(FAR struct ipv4_hdr_s *ipv4)
|
||||
{
|
||||
FAR struct ipv4_hdr_s *ipv4 = IPv4BUF;
|
||||
uint16_t iphdrlen;
|
||||
uint16_t sum;
|
||||
int ttl
|
||||
int ttl;
|
||||
|
||||
/* Check time-to-live (TTL) */
|
||||
|
||||
|
|
Loading…
Reference in New Issue