aboutsummaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/time.c b/time.c
index 666199dd0a..88a5fedacc 100644
--- a/time.c
+++ b/time.c
@@ -260,7 +260,7 @@ time_s_at(int argc, VALUE *argv, VALUE klass)
return t;
}
-static char *months [12] = {
+static const char *months[] = {
"jan", "feb", "mar", "apr", "may", "jun",
"jul", "aug", "sep", "oct", "nov", "dec",
};
@@ -1773,9 +1773,7 @@ time_to_a(VALUE time)
#define SMALLBUF 100
static int
-rb_strftime(char **buf,
- const char *format,
- struct tm *time)
+rb_strftime(char **buf, const char *format, struct tm *time)
{
int size, len, flen;