diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2002-08-07 16:49:20 +0000 | 
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2002-08-07 16:49:20 +0000 | 
| commit | 1491b31e182a05026a4f7fcdf3826bc691f626c7 (patch) | |
| tree | aec44269965a14f0eeb51e2c17aa7f518e398e63 /lib/libc/stdtime | |
| parent | ecc4c62066ba31a359f628de82486171d33f19c6 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdtime')
| -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 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));  }  | 
