OFP_VERSION_OPTION_ENUMS,
VLOG_OPTION_ENUMS
};
- static struct option long_options[] = {
+ static const struct option long_options[] = {
{"timeout", required_argument, NULL, 't'},
{"strict", no_argument, NULL, OPT_STRICT},
{"readd", no_argument, NULL, OPT_READD},
if (timestamp) {
time_t now = time_wall();
+ struct tm tm;
char s[32];
- strftime(s, sizeof s, "%Y-%m-%d %H:%M:%S: ", gmtime(&now));
+ strftime(s, sizeof s, "%Y-%m-%d %H:%M:%S: ",
+ gmtime_r(&now, &tm));
fputs(s, stderr);
}