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:
+5
-5
@@ -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***/
|
||||
|
||||
Reference in New Issue
Block a user