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,14 @@
Correctly print time_t.
Index: src/rrd_graph_helper.c
--- src/rrd_graph_helper.c.orig
+++ src/rrd_graph_helper.c
@@ -1904,7 +1904,7 @@ static int parse_shift(
#if defined _WIN32 && SIZEOF_TIME_T == 8 /* in case of __MINGW64__, _WIN64 and _MSC_VER >= 1400 (ifndef _USE_32BIT_TIME_T) */
dprintf("SHIFTBY : %lli\n", gdp->shval); /* argument 3 has type 'time_t {aka long long int}' */
#else
- dprintf("SHIFTBY : %li\n", gdp->shval);
+ dprintf("SHIFTBY : %lli\n",(long long)gdp->shval); /* argument 3 has type 'time_t' */
#endif
}
dprintf("=================================\n");