From d6d7df8bfe883afe38d5840de4e68112d3afe6fa Mon Sep 17 00:00:00 2001 From: Pawel Winogrodzki Date: Tue, 28 Mar 2017 17:04:46 -0700 Subject: [PATCH] Fixing comments inside coap_time.c and net.c. --- src/coap_time.c | 2 +- src/mem.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/coap_time.c b/src/coap_time.c index 99cecde4..9e0c8602 100644 --- a/src/coap_time.c +++ b/src/coap_time.c @@ -47,7 +47,7 @@ coap_clock_init(void) { void coap_ticks(coap_tick_t *t) { - coap_tick_t tmp; + unsigned long tmp; #ifdef COAP_CLOCK struct timespec tv; diff --git a/src/mem.c b/src/mem.c index d7d8f029..54f3b5a5 100644 --- a/src/mem.c +++ b/src/mem.c @@ -31,13 +31,13 @@ coap_memory_init(void) { #endif /* __GNUC__ */ void * -coap_malloc_type(coap_memory_tag_t type UNUSED_PARAM, size_t size) { +coap_malloc_type(coap_memory_tag_t type, size_t size) { (void)type; return malloc(size); } void -coap_free_type(coap_memory_tag_t type UNUSED_PARAM, void *p) { +coap_free_type(coap_memory_tag_t type, void *p) { (void)type; free(p); }