SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
18
net/rrdtool/patches/patch-src_rrd_lastupdate_c
Normal file
18
net/rrdtool/patches/patch-src_rrd_lastupdate_c
Normal file
|
@ -0,0 +1,18 @@
|
|||
Correctly print time_t.
|
||||
|
||||
Index: src/rrd_lastupdate.c
|
||||
--- src/rrd_lastupdate.c.orig
|
||||
+++ src/rrd_lastupdate.c
|
||||
@@ -77,11 +77,7 @@ int rrd_lastupdate (int argc, char **argv)
|
||||
printf(" %s", ds_names[i]);
|
||||
printf ("\n\n");
|
||||
|
||||
-#if defined _WIN32 && SIZEOF_TIME_T == 8 /* in case of __MINGW64__, _WIN64 and _MSC_VER >= 1400 (ifndef _USE_32BIT_TIME_T) */
|
||||
- printf ("%10llu:", last_update); /* argument 2 has type 'time_t {aka long long int} */
|
||||
-#else
|
||||
- printf ("%10lu:", last_update);
|
||||
-#endif
|
||||
+ printf ("%10llu:", (long long)last_update); /* argument 2 has type 'time_t {aka long long int} */
|
||||
for (i = 0; i < ds_count; i++) {
|
||||
printf(" %s", last_ds[i]);
|
||||
free(last_ds[i]);
|
Loading…
Add table
Add a link
Reference in a new issue