Printing UTCTime really needs last 2 digits of the year.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
return time2gtime(ttime, year);
}
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-y2k"
/* tag will contain ASN1_TAG_UTCTime or ASN1_TAG_GENERALIZEDTime */
static int
gtime_to_suitable_time(time_t gtime, char *str_time, size_t str_time_size, unsigned *tag)
return 0;
}
+#pragma GCC diagnostic pop
static int
gtime_to_generalTime(time_t gtime, char *str_time, size_t str_time_size)
logfile = file;
}
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-y2k"
/* This is very similar to ctime() but it does not force a newline.
*/
char *simple_ctime(const time_t *t, char out[SIMPLE_CTIME_BUF_SIZE])
snprintf(out, SIMPLE_CTIME_BUF_SIZE, "[error]");
return out;
}
+#pragma GCC diagnostic pop