summaryrefslogtreecommitdiff
path: root/security/openvas/files/patch-src_attack.c
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2023-01-04 08:59:26 +0100
committerPiotr Kubaj <pkubaj@FreeBSD.org>2023-01-04 09:00:45 +0100
commit90068af778dee5457e5332e7a8725e0dfab36e9b (patch)
treefe89c312b8b20b2b0c55d16ccfa7c8b6fe3006d1 /security/openvas/files/patch-src_attack.c
parentarchivers/minizip-ng: Update to 3.0.8 (diff)
security/openvas: fix build on powerpc
Cast to long long to account for 64-bit time_t.
Diffstat (limited to 'security/openvas/files/patch-src_attack.c')
-rw-r--r--security/openvas/files/patch-src_attack.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/security/openvas/files/patch-src_attack.c b/security/openvas/files/patch-src_attack.c
new file mode 100644
index 000000000000..2d6e3094ab66
--- /dev/null
+++ b/security/openvas/files/patch-src_attack.c
@@ -0,0 +1,20 @@
+--- src/attack.c.orig 2023-01-03 21:45:22 UTC
++++ src/attack.c
+@@ -1493,13 +1493,13 @@ stop:
+
+ gettimeofday (&now, NULL);
+ if (test_alive_hosts_only)
+- g_message ("Vulnerability scan %s finished in %ld seconds: "
++ g_message ("Vulnerability scan %s finished in %lld seconds: "
+ "%d alive hosts of %d",
+- globals->scan_id, now.tv_sec - then.tv_sec,
++ globals->scan_id, (long long)now.tv_sec - then.tv_sec,
+ gvm_hosts_count (alive_hosts_list), gvm_hosts_count (hosts));
+ else
+- g_message ("Vulnerability scan %s finished in %ld seconds: %d hosts",
+- globals->scan_id, now.tv_sec - then.tv_sec,
++ g_message ("Vulnerability scan %s finished in %lld seconds: %d hosts",
++ globals->scan_id, (long long)now.tv_sec - then.tv_sec,
+ gvm_hosts_count (hosts));
+
+ gvm_hosts_free (hosts);