Nmap Development mailing list archives

Re: time_t changes in OpenBSD-current


From: Giovanni Bechis <giovanni () bigio snb it>
Date: Thu, 09 Jan 2014 12:22:43 +0100

On 01/07/14 04:35, David Fifield wrote:
On Sat, Jan 04, 2014 at 05:18:41PM +0100, Giovanni Bechis wrote:
in september OpenBSD changed time_t to long long on all platforms,
this change broke nmap on 32 bits platforms.
IMHO the main reason is that timing.cc class stores data in a double
and some precision is lost.
The following patch seems to fix the problem, maybe a bit more work is
needed.

Thanks for this patch. Do we need to also add a cast to (long long) so
it will work on other platforms where time_t is long or unsigned long?

David

Patch with long long casts attached.
 Cheers
  Giovanni

Attachment: nmap-6.40-time_t.diff
Description:

_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: