$NetBSD: patch-cgi_histogram.c,v 1.5 2023/01/08 23:33:59 sekiya Exp $ 64-bit time_t workaround --- cgi/histogram.c.orig 2022-11-17 05:52:51.000000000 +0900 +++ cgi/histogram.c 2023-01-09 07:06:38.575800883 +0900 @@ -338,9 +338,9 @@ if(display_type == DISPLAY_HOST_HISTOGRAM) { #ifdef USE_TRENDS - printf("View Trends For This Host
\n", TRENDS_CGI, url_encode(host_name), t1, t2, (assume_state_retention == TRUE) ? "yes" : "no"); + printf("View Trends For This Host
\n", TRENDS_CGI, url_encode(host_name), (unsigned long)t1, (unsigned long)t2, (assume_state_retention == TRUE) ? "yes" : "no"); #endif - printf("View Availability Report For This Host
\n", AVAIL_CGI, url_encode(host_name), t1, t2, (assume_state_retention == TRUE) ? "yes" : "no"); + printf("View Availability Report For This Host
\n", AVAIL_CGI, url_encode(host_name), (unsigned long)t1, (unsigned long)t2, (assume_state_retention == TRUE) ? "yes" : "no"); printf("View Status Detail For This Host
\n", STATUS_CGI, url_encode(host_name)); printf("View History For This Host
\n", HISTORY_CGI, url_encode(host_name)); printf("View Notifications For This Host
\n", NOTIFICATIONS_CGI, url_encode(host_name)); @@ -349,9 +349,9 @@ #ifdef USE_TRENDS printf("View Trends For This Service
\n", url_encode(svc_description), t1, t2, (assume_state_retention == TRUE) ? "yes" : "no"); + printf("&service=%s&t1=%lu&t2=%lu&assumestateretention=%s'>View Trends For This Service
\n", url_encode(svc_description), (unsigned long)t1, (unsigned long)t2, (assume_state_retention == TRUE) ? "yes" : "no"); printf("View Availability Report For This Service
\n", url_encode(svc_description), t1, t2, (assume_state_retention == TRUE) ? "yes" : "no"); + printf("&service=%s&t1=%lu&t2=%lu&assumestateretention=%s&show_log_entries'>View Availability Report For This Service
\n", url_encode(svc_description), (unsigned long)t1, (unsigned long)t2, (assume_state_retention == TRUE) ? "yes" : "no"); printf("View History For This Service
\n", url_encode(svc_description)); printf("