From 95d8e2c8e0a74920a50490f51fe4d00ce79894a9 Mon Sep 17 00:00:00 2001 From: jcmichelou Date: Sat, 6 May 2017 18:11:32 +0200 Subject: [PATCH] Use C-style prototypes for coap_statup and coap_cleanup --- include/coap/libcoap.h | 4 ++-- libcoap-1.map | 2 ++ libcoap-1.sym | 2 ++ src/net.c | 4 ++-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/include/coap/libcoap.h b/include/coap/libcoap.h index cceac9c2..fd25ec51 100644 --- a/include/coap/libcoap.h +++ b/include/coap/libcoap.h @@ -40,8 +40,8 @@ typedef USHORT in_port_t; # endif #endif -void coap_startup(); +void coap_startup(void); -void coap_cleanup(); +void coap_cleanup(void); #endif /* _LIBCOAP_H_ */ diff --git a/libcoap-1.map b/libcoap-1.map index 57184455..395d1178 100644 --- a/libcoap-1.map +++ b/libcoap-1.map @@ -14,6 +14,7 @@ global: coap_can_exit; coap_check_notify; coap_check_option; + coap_cleanup; coap_clock_init; coap_clone_uri; coap_decode_var_bytes; @@ -104,6 +105,7 @@ global: coap_split_path; coap_split_query; coap_split_uri; + coap_startup; coap_subscription_init; coap_ticks; coap_ticks; diff --git a/libcoap-1.sym b/libcoap-1.sym index 15c31234..3faf7e14 100644 --- a/libcoap-1.sym +++ b/libcoap-1.sym @@ -12,6 +12,7 @@ coap_cancel_all_messages coap_can_exit coap_check_notify coap_check_option +coap_cleanup coap_clock_init coap_clone_uri coap_decode_var_bytes @@ -102,6 +103,7 @@ coap_show_pdu coap_split_path coap_split_query coap_split_uri +coap_startup coap_subscription_init coap_ticks coap_ticks diff --git a/src/net.c b/src/net.c index 90f91614..b0b1cf1a 100644 --- a/src/net.c +++ b/src/net.c @@ -1676,7 +1676,7 @@ coap_can_exit( coap_context_t *context ) { return !context || (context->sendqueue == NULL); } -void coap_startup() { +void coap_startup(void) { #if defined(HAVE_WINSOCK2_H) WORD wVersionRequested = MAKEWORD( 2, 2 ); WSADATA wsaData; @@ -1684,7 +1684,7 @@ void coap_startup() { #endif } -void coap_cleanup() { +void coap_cleanup(void) { #if defined(HAVE_WINSOCK2_H) WSACleanup(); #endif