From 9b9f6c85c66baf95dd2c82702790d006e7abc3c3 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Fri, 26 Feb 2021 09:26:57 +0000 Subject: [PATCH] pdu.c: Remove inline expansion warnings for write_char() Just make write_char() and write_prefix() static functions. --- src/pdu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pdu.c b/src/pdu.c index ccd84948..f4fb9dc9 100644 --- a/src/pdu.c +++ b/src/pdu.c @@ -930,7 +930,7 @@ coap_pdu_parse_opt_base(coap_pdu_t *pdu, uint16_t len) { return res; } -static inline int +static int write_prefix(char **obp, size_t *len, const char *prf, size_t prflen) { /* Make sure space for null terminating byte */ if (*len + 1 < prflen) { @@ -943,7 +943,7 @@ write_prefix(char **obp, size_t *len, const char *prf, size_t prflen) { return 1; } -static inline int +static int write_char(char **obp, size_t *len, char c, int printable) { /* Make sure space for null terminating byte */ if (*len + 1 < 2) {