From 7d1327e51407440350c5687d65dfa78de0f8f961 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Mon, 31 Aug 2026 11:34:25 +0200 Subject: [PATCH] nd6: fix missing cast in nd6_find_option Signed-off-by: Simon Goldschmidt --- src/core/ipv6/nd6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ipv6/nd6.c b/src/core/ipv6/nd6.c index fa698c2f..cfb47a5d 100644 --- a/src/core/ipv6/nd6.c +++ b/src/core/ipv6/nd6.c @@ -304,7 +304,7 @@ nd6_process_autoconfig_prefix(struct netif *netif, * or a zero-length option was found. */ static void * -nd6_find_option(struct pbuf *p, int offset, int wanted_type) +nd6_find_option(struct pbuf *p, u16_t offset, int wanted_type) { while ((p->tot_len - offset) >= 2) { u8_t option_type;