mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-20 14:29:05 +03:00
Use C-style prototypes for coap_statup and coap_cleanup
This commit is contained in:
1 parent
e2c2dc5326
commit
95d8e2c8e0
4 files changed
+8
-4
No files matched your search
@@ -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_ */
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user