From c5066f9f4c9cfdfa37d18ec17dabb44534dcc7e8 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 6 Sep 2019 16:01:38 -0600 Subject: [PATCH] net/ipforward/ipv4_forward.c: Correct some errors introduced with commit a52ceac13ee598696cb907b62326bfd4c111ac6c. Noted by Adam Porter. --- net/ipforward/ipv4_forward.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/ipforward/ipv4_forward.c b/net/ipforward/ipv4_forward.c index 19e365b5b2..edebe410ce 100644 --- a/net/ipforward/ipv4_forward.c +++ b/net/ipforward/ipv4_forward.c @@ -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) */