rd.c: Fixed type-specifier warning

For POSIX, coap_tick_t is defined as unsigned long to support
timestamps in wallclock time. The rd uses ticks to make node
identifiers locally unique. As this is just one part of the
generated identifier, the timestamp's lower 32 bits are
sufficient.
This commit is contained in:
Olaf Bergmann committed 2015-03-12 13:05:56 +01:00
1 parent 41e3247c9b
commit d9d20d906b
1 file changed
+1 -1
+1 -1
View File
@@ -420,7 +420,7 @@ hnd_post_rd(coap_context_t *ctx, struct coap_resource_t *resource UNUSED_PARAM,
loc_size +=
snprintf((char *)(loc + loc_size), LOCSIZE - loc_size - 1,
"-%x", now);
"-%x", (unsigned int)(now & (unsigned int)-1));
}
}
}