net/ipforward/ipv4_forward.c: Correct some errors introduced with commit a52ceac13e. Noted by Adam Porter.

This commit is contained in:
Gregory Nutt 2019-09-06 16:01:38 -06:00
parent f6b80dd0f9
commit c5066f9f4c
1 changed files with 1 additions and 2 deletions

View File

@ -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) */