From a3b8c904853aea5392851dfaf0bada80c12aeb8c Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Thu, 23 Aug 2018 11:51:01 +0200 Subject: [PATCH] net/gcoap: adjust to nanocoap changes --- sys/net/application_layer/gcoap/gcoap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/net/application_layer/gcoap/gcoap.c b/sys/net/application_layer/gcoap/gcoap.c index 87aa1a4170..9729356f1f 100644 --- a/sys/net/application_layer/gcoap/gcoap.c +++ b/sys/net/application_layer/gcoap/gcoap.c @@ -564,8 +564,8 @@ static ssize_t _write_options(coap_pkt_t *pdu, uint8_t *buf, size_t len) DEBUG("gcoap: _write_options: path does not start with '/'\n"); return -EINVAL; } - bufpos += coap_put_option_uri(bufpos, last_optnum, (char *)pdu->url, - COAP_OPT_URI_PATH); + bufpos += coap_opt_put_uri_path(bufpos, last_optnum, + (char *)pdu->url); last_optnum = COAP_OPT_URI_PATH; } } @@ -578,8 +578,8 @@ static ssize_t _write_options(coap_pkt_t *pdu, uint8_t *buf, size_t len) /* Uri-query for requests */ if (coap_get_code_class(pdu) == COAP_CLASS_REQ) { - bufpos += coap_put_option_uri(bufpos, last_optnum, (char *)pdu->qs, - COAP_OPT_URI_QUERY); + bufpos += coap_opt_put_uri_query(bufpos, last_optnum, + (char *)pdu->qs); /* uncomment when further options are added below ... */ /* last_optnum = COAP_OPT_URI_QUERY; */ }