From 1491b31e182a05026a4f7fcdf3826bc691f626c7 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Wed, 7 Aug 2002 16:49:20 +0000 Subject: [PATCH] Style fixes --- lib/libc/stdtime/timelocal.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/lib/libc/stdtime/timelocal.c b/lib/libc/stdtime/timelocal.c index e1fffcb9468d..88117bdf98c3 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)); }