Nmap Development mailing list archives
[PATCH] nsock_core.c unsigned int compilation error
From: "Rob Nicholls" <robert () robnicholls co uk>
Date: Sun, 24 Oct 2010 23:15:56 +0100
Hi, I recently tried compiling Nmap from SVN and was surprised to see it was failing on Windows! It seems that nsock_core.c was trying to pass an unsigned integer value (peerlen) to recvfrom when it was expecting an integer (according to Visual C++ 2008 SP1). As peerlen holds the rather small value returned from "sizeof(peer)", I'm pretty sure (but I'm not that hot on C) that it's fine to simply remove the word "unsigned", and this does appear to allow Nmap to compile and run okay on Windows (only tested it briefly). I hope I've fixed it correctly. Rob
Attachment:
nsock_peerlen_unsigned_int_error_windows_compilation.diff
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- [PATCH] nsock_core.c unsigned int compilation error Rob Nicholls (Oct 24)
- Re: [PATCH] nsock_core.c unsigned int compilation error David Fifield (Oct 28)
- Re: [PATCH] nsock_core.c unsigned int compilation error Djalal Harouni (Oct 29)
- Re: [PATCH] nsock_core.c unsigned int compilation error David Fifield (Oct 29)
- Re: [PATCH] nsock_core.c unsigned int compilation error Djalal Harouni (Oct 29)
- Re: [PATCH] nsock_core.c unsigned int compilation error David Fifield (Oct 28)