diff options
Diffstat (limited to 'src/locale')
| -rw-r--r-- | src/locale/localeconv.c | 3 | ||||
| -rw-r--r-- | src/locale/setlocale.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/locale/localeconv.c b/src/locale/localeconv.c index fecb9176..ba4687d9 100644 --- a/src/locale/localeconv.c +++ b/src/locale/localeconv.c @@ -1,7 +1,6 @@ #include <locale.h> #include "_locale.h" #include "_safety.h" -#undef localeconv /** return locale-specific information **/ @@ -15,6 +14,8 @@ struct lconv * localeconv(void) return &(__get_locale()->lconv); } +__check_0(struct lconv *, NULL, localeconv) + /*** fills in a STRUCTDEF(lconv) in the current locale for use in formatting numbers and monetary values. diff --git a/src/locale/setlocale.c b/src/locale/setlocale.c index 5a2b6859..ab355dc6 100644 --- a/src/locale/setlocale.c +++ b/src/locale/setlocale.c @@ -3,7 +3,6 @@ #include <stdlib.h> #include "_locale.h" #include "_safety.h" -#undef setlocale /** get or set program locale **/ @@ -45,6 +44,8 @@ char * setlocale(int category, const char *locale) return __load_locale(l, mask, locale); } +__check_2(char *, NULL, setlocale, int, const char *) + /*** sets or retrieves the current global locale of the program. The program locale has global effects of various operations, based |
