diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-01-30 22:26:23 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-01-30 22:26:23 -0500 |
| commit | afb77ecfbce74bdd61b607b84f6b967898e7787f (patch) | |
| tree | a2c11e133c2ca1eef388d66e287b730a7bab3944 /src/locale | |
| parent | 7da82792e165504c1565904dc4541fccbc10bcf8 (diff) | |
update to 1:1 checked functions
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 |
