diff options
author | Robert Clausecker <fuz@fuz.su> | 2022-09-30 11:35:56 +0200 |
---|---|---|
committer | Dima Panov <fluffy@FreeBSD.org> | 2022-10-15 17:34:16 +0300 |
commit | a774bfbbb08cf1c3529696f9ddc205ca460a6743 (patch) | |
tree | 3e5523c7a7f3dd5c37702f87dd3fba31951d1320 /security/gvm-libs/files/patch-boreas_cli.c | |
parent | www/gallery-dl: update to 1.23.3 (diff) |
security/gvm-libs: fix build on armv7 (+)
- add missing type casts for sizeof(time_t) > sizeof(long)
- neuter -Werror as per policy
- while we are at it, pet portlint
Approved by: maintainer timeout (acm)
Submitted by: Robert Clausecker
PR: 266725
MFH: 2022Q4
Diffstat (limited to 'security/gvm-libs/files/patch-boreas_cli.c')
-rw-r--r-- | security/gvm-libs/files/patch-boreas_cli.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/security/gvm-libs/files/patch-boreas_cli.c b/security/gvm-libs/files/patch-boreas_cli.c new file mode 100644 index 000000000000..1a21e7e09af8 --- /dev/null +++ b/security/gvm-libs/files/patch-boreas_cli.c @@ -0,0 +1,13 @@ +--- boreas/cli.c.orig 2022-09-30 08:26:50 UTC ++++ boreas/cli.c +@@ -162,8 +162,8 @@ run_cli_scan (scanner_t *scanner, alive_test_t alive_t + scanner->hosts_data->alivehosts); + gettimeofday (&end_time, NULL); + if (scanner->print_results == 1) +- printf ("Alive scan finished in %ld seconds: %d alive hosts of %d.\n", +- end_time.tv_sec - start_time.tv_sec, ++ printf ("Alive scan finished in %lld seconds: %d alive hosts of %d.\n", ++ (long long)(end_time.tv_sec - start_time.tv_sec), + number_of_targets - number_of_dead_hosts, number_of_targets); + + return error; |