mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 10:40:28 +09:00
Add a return value to ssh_socket_init().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@494 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -75,14 +75,16 @@ struct socket {
|
||||
* \internal
|
||||
* \brief inits the socket system (windows specific)
|
||||
*/
|
||||
void ssh_socket_init(void) {
|
||||
int ssh_socket_init(void) {
|
||||
#ifdef _WIN32
|
||||
struct WSAData wsaData;
|
||||
|
||||
if (WSAStartup(MAKEWORD(2, 0), &wsaData)) {
|
||||
/* FIXME print error */
|
||||
/* Initiates use of the Winsock DLL by a process. */
|
||||
if (WSAStartup(MAKEWORD(2, 0), &wsaData) != 0) {
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
/*
|
||||
* \internal
|
||||
|
||||
Reference in New Issue
Block a user