summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/time.c b/time.c
index e1aba184f6..e4e4ee2ed1 100644
--- a/time.c
+++ b/time.c
@@ -333,7 +333,7 @@ time_s_at(int argc, VALUE *argv, VALUE klass)
return t;
}
-static const char const months[][4] = {
+static const char months[][4] = {
"jan", "feb", "mar", "apr", "may", "jun",
"jul", "aug", "sep", "oct", "nov", "dec",
};
@@ -829,7 +829,10 @@ static time_t
make_time_t(struct tm *tptr, int utc_p)
{
time_t t;
- struct tm *tmp, buf;
+#ifdef NEGATIVE_TIME_T
+ struct tm *tmp;
+#endif
+ struct tm buf;
buf = *tptr;
if (utc_p) {
#if defined(HAVE_TIMEGM)