aboutsummaryrefslogtreecommitdiff
path: root/libssh/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/socket.c')
-rw-r--r--libssh/socket.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/libssh/socket.c b/libssh/socket.c
index c4e6fe71..f95a2dcc 100644
--- a/libssh/socket.c
+++ b/libssh/socket.c
@@ -72,12 +72,16 @@ struct socket {
* \internal
* \brief inits the socket system (windows specific)
*/
-void ssh_socket_init(void){
+void ssh_socket_init(void) {
#ifdef _WIN32
- struct WSAData wsaData;
- if (WSAStartup(MAKEWORD(2, 0), &wsaData)) {
- ssh_say(1,"Error initialising Windows sockets.\n");
- }
+ struct WSAData wsaData;
+
+ if (WSAStartup(MAKEWORD(2, 0), &wsaData)) {
+ /* FIXME print error */
+ }
+#else
+ /* not useed in unix */
+ (void) session;
#endif
}
/*