mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-17 13:29:05 +03:00
pdu.c: Remove inline expansion warnings for write_char()
Just make write_char() and write_prefix() static functions.
This commit is contained in:
1 parent
486f97f8d4
commit
9b9f6c85c6
1 file changed
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user