From d55bd85e14ef346a11c046222d45685dad60cb5e Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Wed, 11 Mar 2015 14:37:18 +0100 Subject: [PATCH] examples/contiki/server.c: Define clock_offset locally The global variable clock_offset has been removed from libcoap, so we have to define our own. --- examples/contiki/server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/contiki/server.c b/examples/contiki/server.c index 580c51ab..9779951f 100644 --- a/examples/contiki/server.c +++ b/examples/contiki/server.c @@ -40,6 +40,7 @@ static coap_context_t *coap_context; +static clock_time_t clock_offset; /* changeable clock base (see handle_put_time()) */ static clock_time_t my_clock_base = 0; static coap_resource_t *time_resource = NULL; /* just for testing */ @@ -193,6 +194,7 @@ PROCESS_THREAD(coap_server_process, ev, data) { PROCESS_BEGIN(); + clock_offset = clock_time(); init_coap_server(&coap_context); if (!coap_context) {