mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-01 15:35:46 +03:00
Merge pull request #650 from mrdeep1/lwip_warnings
lwip: Fix compiler warnings
This commit is contained in:
2 files changed
+7
-9
No files matched your search
@@ -63,7 +63,7 @@ lwip_prng_impl(unsigned char *buf, size_t len) {
|
||||
}
|
||||
|
||||
#define coap_prng(Buf,Length) lwip_prng_impl((Buf), (Length))
|
||||
#define coap_prng_init(Value)
|
||||
#define coap_prng_init(Value) (void)Value
|
||||
|
||||
#else
|
||||
|
||||
|
||||
+6
-8
@@ -78,12 +78,7 @@ coap_register_async(coap_context_t *context, coap_session_t *session,
|
||||
|
||||
s->session = coap_session_reference( session );
|
||||
|
||||
if (delay) {
|
||||
coap_ticks(&s->delay);
|
||||
s->delay += delay;
|
||||
}
|
||||
coap_log(LOG_DEBUG, " %s: Request for delayed for %lu ticks\n",
|
||||
coap_session_str(session), delay);
|
||||
coap_async_set_delay(s, delay);
|
||||
|
||||
LL_PREPEND(context->async_state, s);
|
||||
|
||||
@@ -100,8 +95,11 @@ coap_async_set_delay(coap_async_t *async, coap_tick_t delay) {
|
||||
}
|
||||
else
|
||||
async->delay = 0;
|
||||
coap_log(LOG_DEBUG, " %s: Request for delayed for %lu ticks\n",
|
||||
coap_session_str(async->session), delay);
|
||||
coap_log(LOG_DEBUG, " %s: Request for delayed for %u.%03u secs\n",
|
||||
coap_session_str(async->session),
|
||||
(unsigned int)(delay / COAP_TICKS_PER_SECOND),
|
||||
(unsigned int)((delay % COAP_TICKS_PER_SECOND) *
|
||||
1000 / COAP_TICKS_PER_SECOND));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user