18 lines
851 B
Plaintext
18 lines
851 B
Plaintext
$OpenBSD: patch-osscan2_cc,v 1.2 2014/05/16 15:08:54 sthen Exp $
|
|
|
|
Format changes for 64-bit time_t, should go upstream
|
|
|
|
--- osscan2.cc.orig Sat Mar 15 12:37:54 2014
|
|
+++ osscan2.cc Thu May 15 20:12:32 2014
|
|
@@ -2507,8 +2507,8 @@ void HostOsScan::makeTSeqFP(HostOsScanStats *hss) {
|
|
if (lastboot != 0.0 && (hss->seq_send_times[0].tv_sec - lastboot > 63072000)) {
|
|
/* Up 2 years? Perhaps, but they're probably lying. */
|
|
if (o.debugging) {
|
|
- log_write(LOG_STDOUT, "Ignoring claimed %s uptime of %lu days\n",
|
|
- hss->target->targetipstr(), (hss->seq_send_times[0].tv_sec - hss->si.lastboot) / 86400);
|
|
+ log_write(LOG_STDOUT, "Ignoring claimed %s uptime of %lld days\n",
|
|
+ hss->target->targetipstr(), (long long) ((hss->seq_send_times[0].tv_sec - hss->si.lastboot) / 86400));
|
|
}
|
|
lastboot = 0;
|
|
}
|