mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-22 15:25:14 +03:00
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:
1 parent
41e3247c9b
commit
d9d20d906b
1 file changed
+1
-1
+1
-1
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user