summaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-03-01 10:06:03 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-03-01 10:06:03 +0000
commit9591086aa3e523067fa809f4551de3340bcc16c2 (patch)
tree425832b33246e19d77897127da20b89ea19b92c6 /time.c
parent7fb9b53527342750d1d52519a56500392964f33c (diff)
downloadruby-9591086aa3e523067fa809f4551de3340bcc16c2.tar.gz
ruby-9591086aa3e523067fa809f4551de3340bcc16c2.tar.xz
ruby-9591086aa3e523067fa809f4551de3340bcc16c2.zip
* dir.c: supress warning "/* within comment"
* bignum.c, io.c, math.c, pack.c, time.c: ANSI styled. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 666199dd0..88a5fedac 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;