summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2002-08-07 16:49:20 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2002-08-07 16:49:20 +0000
commit1491b31e182a05026a4f7fcdf3826bc691f626c7 (patch)
treeaec44269965a14f0eeb51e2c17aa7f518e398e63
parentecc4c62066ba31a359f628de82486171d33f19c6 (diff)
Notes
-rw-r--r--lib/libc/stdtime/timelocal.c15
1 files 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));
}