From b9ca1deba86eaaaf3e143c6d7d922a755c86761b Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Thu, 12 Oct 2023 21:41:49 +0200 Subject: [PATCH] Fix building with ISO C90 This fixes the changes of commit 574bd6e5aa --- src/core/tcp_in.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/tcp_in.c b/src/core/tcp_in.c index de64464d..8eb58b97 100644 --- a/src/core/tcp_in.c +++ b/src/core/tcp_in.c @@ -1687,6 +1687,7 @@ tcp_receive(struct tcp_pcb *pcb) ->ooseq. We check the lengths to see which one to discard. */ if (inseg.len > next->len) { + struct tcp_seg* cseg; /* If next segment is the last segment in ooseq and smaller than inseg, that means it has been @@ -1699,7 +1700,7 @@ tcp_receive(struct tcp_pcb *pcb) /* The incoming segment is larger than the old segment. We replace some segments with the new one. */ - struct tcp_seg *cseg = tcp_seg_copy(&inseg); + cseg = tcp_seg_copy(&inseg); if (cseg != NULL) { if (prev != NULL) { prev->next = cseg;