Yet another tweak for win32.

git-svn-id: file:///home/mbr/svn/fwknop/trunk@97 510a4753-2344-4c79-9c09-4d669213fbeb
This commit is contained in:
Damien Stuart
2009-06-07 17:13:36 +00:00
parent 51c37ba159
commit 5811d1107b
+5 -5
View File
@@ -352,11 +352,11 @@ send_spa_packet(fko_ctx_t ctx, fko_cli_options_t *options)
#ifdef WIN32
/* Winsock needs to be initialized...
*/
rv = WSAStartup( MAKEWORD(1,1), &wsa_data );
if( rv != 0 )
res = WSAStartup( MAKEWORD(1,1), &wsa_data );
if( res != 0 )
{
fprintf(stderr, "[*] Winsock initialization error %d\n", rv );
return(0);
fprintf(stderr, "[*] Winsock initialization error %d\n", res );
return(-1);
}
#endif
@@ -454,7 +454,7 @@ int write_spa_packet_data(fko_ctx_t ctx, fko_cli_options_t *options)
fclose(fp);
return(1);
return(0);
}
/***EOF***/