diff options
author | ache <ache@FreeBSD.org> | 2002-08-07 16:49:20 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2002-08-07 16:49:20 +0000 |
commit | 919d00b11333feaf446ac8dbde0e32d08b6f19fb (patch) | |
tree | aec44269965a14f0eeb51e2c17aa7f518e398e63 | |
parent | 5695ea6363a2eab6ca0fe05e683eddad7ade75ca (diff) | |
download | FreeBSD-src-919d00b11333feaf446ac8dbde0e32d08b6f19fb.zip FreeBSD-src-919d00b11333feaf446ac8dbde0e32d08b6f19fb.tar.gz |
Style fixes
-rw-r--r-- | lib/libc/stdtime/timelocal.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/libc/stdtime/timelocal.c b/lib/libc/stdtime/timelocal.c index e1fffcb..88117bd 100644 --- a/lib/libc/stdtime/timelocal.c +++ b/lib/libc/stdtime/timelocal.c @@ -100,21 +100,18 @@ static const struct lc_time_T _C_time_locale = { }; struct lc_time_T * -__get_current_time_locale(void) { +__get_current_time_locale(void) +{ return (_time_using_locale ? &_time_locale : (struct lc_time_T *)&_C_time_locale); } int -__time_load_locale(const char *name) { - - int ret; - - ret = __part_load_locale(name, &_time_using_locale, +__time_load_locale(const char *name) +{ + return (__part_load_locale(name, &_time_using_locale, time_locale_buf, "LC_TIME", LCTIME_SIZE, LCTIME_SIZE, - (const char **)&_time_locale); - - return (ret); + (const char **)&_time_locale)); } |