mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +03:00
Deprecated: Replace deprecated functions in library
examples/contiki/coap-observer.c: examples/etsi_iot_01.c: include/coap2/coap_prng.h: include/coap2/net.h: src/coap_debug.c: src/coap_openssl.c: src/coap_session.c: src/net.c: src/option.c: tests/test_error_response.c: tests/test_options.c: prng -> coap_prng prng_init -> coap_prng_init coap_option_setb -> coap_option_filter_set coap_option_clrb -> coap_option_filter_unset coap_option_getb -> coap_option_filter_get include/coap2/coap.h.windows: win32/libcoap.vcxproj: win32/libcoap.vcxproj.filters: prng.h -> coap_prng.h include/coap2/option.h: Add in COAP_DEPRECATED in deprecated functions.
This commit is contained in:
1 parent
ffc1979b6b
commit
26cd2446a8
15 files changed
+59
-72
No files matched your search
+1
-1
@@ -885,7 +885,7 @@ int coap_debug_send_packet(void) {
|
||||
}
|
||||
if ( packet_loss_level > 0 ) {
|
||||
uint16_t r = 0;
|
||||
prng( (uint8_t*)&r, 2 );
|
||||
coap_prng( (uint8_t*)&r, 2 );
|
||||
if ( r < packet_loss_level )
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user