From 8a8790cfc337bc25df6dc1537246fc12f252b243 Mon Sep 17 00:00:00 2001 From: Carsten Schoenert Date: Fri, 29 Jan 2016 16:31:53 +0100 Subject: [PATCH] fixup small typos, no functional changes There are few miss spelled words 'reponse', fixed up into the meaned word 'response'. --- include/coap/net.h | 2 +- src/net.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/coap/net.h b/include/coap/net.h index 50723375..014b4903 100644 --- a/include/coap/net.h +++ b/include/coap/net.h @@ -274,7 +274,7 @@ coap_tid_t coap_send(coap_context_t *context, * @param local_interface The local network interface where the outbound packet * is sent. * @param dst The remote peer that sent the request. - * @param code The reponse code. + * @param code The response code. * @param opts A filter that specifies the options to copy from the * @p request. * diff --git a/src/net.c b/src/net.c index 839f76a4..9aadbc22 100644 --- a/src/net.c +++ b/src/net.c @@ -1514,7 +1514,7 @@ handle_response(coap_context_t *context, rcvd->pdu->hdr->token, rcvd->pdu->hdr->token_length); - /* Call application-specific reponse handler when available. */ + /* Call application-specific response handler when available. */ if (context->response_handler) { context->response_handler(context, &rcvd->local_if, &rcvd->remote, sent ? sent->pdu : NULL, @@ -1601,11 +1601,11 @@ coap_dispatch(coap_context_t *context, coap_queue_t *rcvd) { coap_new_error_response(rcvd->pdu, COAP_RESPONSE_CODE(402), opt_filter); if (!response) - warn("coap_dispatch: cannot create error reponse\n"); + warn("coap_dispatch: cannot create error response\n"); else { if (coap_send(context, &rcvd->local_if, &rcvd->remote, response) == COAP_INVALID_TID) { - warn("coap_dispatch: error sending reponse\n"); + warn("coap_dispatch: error sending response\n"); } coap_delete_pdu(response); }