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 <bergmann@tzi.org>
This commit is contained in:
chrysn authored and Olaf Bergmann committed 2013-05-03 12:52:05 +02:00
1 parent 31c36a777b
commit 1715b80d87
1 file changed
+1 -1
+1 -1
View File
@@ -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);