SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,21 @@
Index: TestRecord.cc
--- TestRecord.cc.orig
+++ TestRecord.cc
@@ -53,7 +53,7 @@ char *TestRecord::htoa(Pctest *pct)
#else
sprintf(buffer2,
#endif /* HAVE_SNPRINTF */
- "probe t %ld.%06ld ", tvstart.tv_sec, tvstart.tv_usec);
+ "probe t %lld.%06ld ", (long long)tvstart.tv_sec, (long)tvstart.tv_usec);
strncat(buffer, buffer2, buflen);
#ifdef HAVE_SNPRINTF
@@ -61,7 +61,7 @@ char *TestRecord::htoa(Pctest *pct)
#else
sprintf(buffer2,
#endif /* HAVE_SNPRINTF */
- "h %d b %d addr %s res %d rtt %ld.%06ld rb %d", hops, size, pct->GetPrintableAddress(icmpSourceAddress), result, tv.tv_sec, tv.tv_usec, replsize);
+ "h %d b %d addr %s res %d rtt %lld.%06ld rb %d", hops, size, pct->GetPrintableAddress(icmpSourceAddress), result, (long long)tv.tv_sec, (long)tv.tv_usec, replsize);
strncat(buffer, buffer2, buflen);
return buffer;