aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-03-11 09:53:56 +0000
committerAndreas Schneider <mail@cynapses.org>2009-03-11 09:53:56 +0000
commit39a8009e787958d00f1be5e256dcb0350dbb548e (patch)
treea7e1efd5b7976d28ff5d72257fea1fc9a2c6bcf2 /libssh
parent081adeb3d6dc5a4c7e1a592f2ae36b72cfb6c6f3 (diff)
downloadlibssh-39a8009e787958d00f1be5e256dcb0350dbb548e.tar.gz
libssh-39a8009e787958d00f1be5e256dcb0350dbb548e.tar.xz
libssh-39a8009e787958d00f1be5e256dcb0350dbb548e.zip
Remove ssh_say.
Aris, how should we print an error? git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@257 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh')
-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
}
/*