Nmap Development mailing list archives
[PATCH] Remove unnecessary cast in block_socket()
From: "Kris Katterjohn" <kjak () ispwest com>
Date: Tue, 21 Feb 2006 21:39:03 -0800
This removes the cast of unsigned long to options, which is allready unsigned long.
Thanks,
Kris Katterjohn
--- tcpip.cc.orig 2006-02-21 11:55:49.000000000 -0600
+++ tcpip.cc 2006-02-21 23:34:18.000000000 -0600
@@ -2728,7 +2728,7 @@ int block_socket(int sd) {
#ifdef WIN32
unsigned long options=0;
if(sd == 501) return 1;
- ioctlsocket(sd, FIONBIO, (unsigned long *)&options);
+ ioctlsocket(sd, FIONBIO, &options);
#else
int options;
options = (~O_NONBLOCK) & fcntl(sd, F_GETFL);
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Current thread:
- [PATCH] Remove unnecessary cast in block_socket() Kris Katterjohn (Feb 21)
