diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-07 04:50:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-07 04:50:34 +0000 |
commit | 8137c55558d8b4dfa419907cc5a5e7262a720e3b (patch) | |
tree | c43cef1cb04640c85ef71ca3634d04fee5265e72 | |
parent | 5b3bf854f7415d9ace826232e648668405c8a9c0 (diff) |
* time.c (rb_gmtime_r2): adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | time.c | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -905,20 +905,20 @@ rb_localtime_r2(const time_t *t, struct tm *result) #define LOCALTIME(tm, result) (tzset(),rb_localtime_r2((tm), &(result))) #if !defined(HAVE_STRUCT_TM_TM_GMTOFF) - static struct tm * - rb_gmtime_r2(const time_t *t, struct tm *result) - { - result = rb_gmtime_r(t, result); +static struct tm * +rb_gmtime_r2(const time_t *t, struct tm *result) +{ + result = rb_gmtime_r(t, result); #if defined(HAVE_TIMEGM) && defined(LOCALTIME_OVERFLOW_PROBLEM) - if (result) { - struct tm tmp = *result; - time_t t2 = timegm(&tmp); - if (*t != t2) - result = NULL; - } -#endif - return result; + if (result) { + struct tm tmp = *result; + time_t t2 = timegm(&tmp); + if (*t != t2) + result = NULL; } +#endif + return result; +} # define GMTIME(tm, result) rb_gmtime_r2((tm), &(result)) #endif |