From 65323462772542194fd4637172f93ac5b6b27d7e Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 13 May 2014 16:46:48 +0100 Subject: add struct tm definition and fix build error --- utils/config.h | 1 + utils/utils.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/config.h b/utils/config.h index 12b4b7fc0..cc4f75191 100644 --- a/utils/config.h +++ b/utils/config.h @@ -41,6 +41,7 @@ char *strcasestr(const char *haystack, const char *needle); #if (defined(riscos) || defined(_WIN32)) #undef HAVE_STRPTIME #define strptime nsc_time_strptime +struct tm; char *nsc_time_strptime(const char *s, const char *format, struct tm *tm); #else #define HAVE_STRPTIME diff --git a/utils/utils.c b/utils/utils.c index 9bccf2b90..f2f69e2ea 100644 --- a/utils/utils.c +++ b/utils/utils.c @@ -576,7 +576,7 @@ char *nsc_time_strptime(const char *s, const char *format, struct tm *tm) char *endptr; if ((format[0] != '%') || (format[1] != 's')) { - return NULL + return NULL; } esecs = (time_t)strtoll(a, &endptr, 10); -- cgit v1.2.3