openbsd-ports/net/nmap/patches/patch-NmapOps_cc

18 lines
653 B
Plaintext
Raw Normal View History

$OpenBSD: patch-NmapOps_cc,v 1.1 2012/07/16 07:39:31 giovanni Exp $
--- NmapOps.cc.orig Tue May 8 07:49:51 2012
+++ NmapOps.cc Fri May 25 14:45:19 2012
@@ -197,11 +197,11 @@ void NmapOps::setSourceSockAddr(struct sockaddr_storag
// Number of seconds since getStartTime(). The current time is an
// optional argument to avoid an extra gettimeofday() call.
-float NmapOps::TimeSinceStart(const struct timeval *now) {
+float NmapOps::TimeSinceStart(const struct bpf_timeval *now) {
struct timeval tv;
if (!now)
gettimeofday(&tv, NULL);
- else tv = *now;
+ else tv = (timeval &)*now;
return TIMEVAL_FSEC_SUBTRACT(tv, start_time);
}