From 1715b80d87fac771444e1ba1ccc7ae607212a2a9 Mon Sep 17 00:00:00 2001 From: chrysn Date: Sat, 27 Apr 2013 11:18:12 +0200 Subject: [PATCH] declare the inline function opt_finished static an `inline int opt_finished` causes GCC to spew this error when used with -std=gnu99: libcoap/option.c:165: undefined reference to `opt_finished' Signed-off-by: Olaf Bergmann --- option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/option.c b/option.c index ee815e48..a03fc9e6 100644 --- a/option.c +++ b/option.c @@ -141,7 +141,7 @@ coap_option_iterator_init(coap_pdu_t *pdu, coap_opt_iterator_t *oi, return oi; } -inline int +static inline int opt_finished(coap_opt_iterator_t *oi) { assert(oi);