From 5dc2fdc0acb07bcfaf753d8b47df0bd04cac7922 Mon Sep 17 00:00:00 2001 From: Koushik4082 Date: Thu, 17 May 2018 11:21:09 +0000 Subject: [PATCH] Update pdu.c --- src/pdu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pdu.c b/src/pdu.c index b9cfd71cb9..d5bfded7a6 100644 --- a/src/pdu.c +++ b/src/pdu.c @@ -598,8 +598,8 @@ coap_add_token2(coap_pdu_t *pdu, size_t len, const unsigned char *data, return 1; } -int coap_add_token_for_empty_message(coap_pdu_t *pdu, size_t len, const unsigned char *data, - coap_transport_t transport) +int coap_add_token_to_empty_message(coap_pdu_t *pdu, size_t len, const unsigned char *data, + coap_transport_t transport) { const size_t HEADERLENGTH = len; /* must allow for pdu == NULL as callers may rely on this */