openbsd-ports/net/nmap/patches/patch-nsock_src_nsock_pool_c
giovanni 7cc1504616 Major update to 6.01
tests & ok benoit@, thanks
2012-07-16 07:39:31 +00:00

22 lines
1013 B
Plaintext

$OpenBSD: patch-nsock_src_nsock_pool_c,v 1.1 2012/07/16 07:39:31 giovanni Exp $
--- nsock/src/nsock_pool.c.orig Fri May 25 10:21:45 2012
+++ nsock/src/nsock_pool.c Fri May 25 10:22:23 2012
@@ -123,7 +123,7 @@ void *nsp_getud(nsock_pool nsp) {
* everything. The basetime can be NULL to print trace lines with the current
* time, otherwise the difference between the current time and basetime will be
* used (the time program execution starts would be a good candidate) */
-void nsp_settrace(nsock_pool nsp, FILE *file, int level, const struct timeval *basetime) {
+void nsp_settrace(nsock_pool nsp, FILE *file, int level, const struct bpf_timeval *basetime) {
mspool *mt = (mspool *)nsp;
if (file == NULL)
@@ -134,7 +134,7 @@ void nsp_settrace(nsock_pool nsp, FILE *file, int leve
mt->tracelevel = level;
if (!basetime)
- memset(&mt->tracebasetime, 0, sizeof(struct timeval));
+ memset(&mt->tracebasetime, 0, sizeof(struct bpf_timeval));
else
mt->tracebasetime = *basetime;
}