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.
This commit is contained in:
Olaf Bergmann committed 2015-03-11 14:37:18 +01:00
1 parent f1b36046f2
commit d55bd85e14
1 file changed
+2
+2
View File
@@ -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) {