summaryrefslogtreecommitdiffstats
path: root/libssh/socket.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2010-05-17 11:19:31 +0200
committerAndreas Schneider <mail@cynapses.org>2010-05-17 11:19:31 +0200
commit488e822c8d242760f3f47e10d7f071edee65923f (patch)
tree25569716b98d2c4c101c48ad900edb8458a4738a /libssh/socket.c
parent2234c115f25ccf606d28981711bc75871fbd2505 (diff)
downloadlibssh-488e822c8d242760f3f47e10d7f071edee65923f.tar.gz
libssh-488e822c8d242760f3f47e10d7f071edee65923f.tar.xz
libssh-488e822c8d242760f3f47e10d7f071edee65923f.zip
poll: Added a cleanup function to free the ws2_32 library.
Diffstat (limited to 'libssh/socket.c')
-rw-r--r--libssh/socket.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/libssh/socket.c b/libssh/socket.c
index 7c5a83f..9350bca 100644
--- a/libssh/socket.c
+++ b/libssh/socket.c
@@ -111,10 +111,20 @@ int ssh_socket_init(void) {
return -1;
}
- ssh_poll_init();
#endif
+ ssh_poll_init();
+
return 0;
}
+
+/**
+ * @brief Cleanup the socket system.
+ */
+void ssh_socket_cleanup(void) {
+ ssh_poll_cleanup();
+}
+
+
/**
* \internal
* \brief creates a new Socket object