diff options
| author | Alexey Zelkin <phantom@FreeBSD.org> | 2001-02-12 08:56:39 +0000 |
|---|---|---|
| committer | Alexey Zelkin <phantom@FreeBSD.org> | 2001-02-12 08:56:39 +0000 |
| commit | b161fb00618582eb3982d45529da41cf51b25f69 (patch) | |
| tree | 465595e036d136d91487d7177c99f4fe99ca9726 | |
| parent | ba4a5c925a38aec37372c24eed502b528c2355fc (diff) | |
Notes
| -rw-r--r-- | lib/libc/locale/lmessages.c | 4 | ||||
| -rw-r--r-- | lib/libc/locale/lmonetary.c | 2 | ||||
| -rw-r--r-- | lib/libc/locale/lnumeric.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/locale/lmessages.c b/lib/libc/locale/lmessages.c index c4fb0e845057..99c2adf16702 100644 --- a/lib/libc/locale/lmessages.c +++ b/lib/libc/locale/lmessages.c @@ -55,14 +55,14 @@ __messages_load_locale(const char *name) { ret = __part_load_locale(name, &_messages_using_locale, messages_locale_buf, "LC_MESSAGES", LCMESSAGES_SIZE_FULL, (const char **)&_messages_locale); - if (!ret) { + if (ret == 0) { /* Assume that we have incomplete locale file (without * "yesstr" and "nostr" declared. Try it also. */ ret = __part_load_locale(name, &_messages_using_locale, messages_locale_buf, "LC_MESSAGES", LCMESSAGES_SIZE_MIN, (const char **)&_messages_locale); - if (!ret) { + if (ret == 0) { _messages_locale.yesstr = empty; _messages_locale.nostr = empty; } diff --git a/lib/libc/locale/lmonetary.c b/lib/libc/locale/lmonetary.c index 8e98749e4398..f016d85d6479 100644 --- a/lib/libc/locale/lmonetary.c +++ b/lib/libc/locale/lmonetary.c @@ -68,7 +68,7 @@ __monetary_load_locale(const char *name) { ret = __part_load_locale(name, &_monetary_using_locale, monetary_locale_buf, "LC_MONETARY", LCMONETARY_SIZE, (const char **)&_monetary_locale); - if (!ret && _monetary_using_locale) + if (ret == 0 && _monetary_using_locale) _monetary_locale.mon_grouping = __fix_locale_grouping_str(_monetary_locale.mon_grouping); return ret; diff --git a/lib/libc/locale/lnumeric.c b/lib/libc/locale/lnumeric.c index 3fea4db96cae..7b6e4b3e623a 100644 --- a/lib/libc/locale/lnumeric.c +++ b/lib/libc/locale/lnumeric.c @@ -56,7 +56,7 @@ __numeric_load_locale(const char *name) { ret = __part_load_locale(name, &_numeric_using_locale, numeric_locale_buf, "LC_NUMERIC", LCNUMERIC_SIZE, (const char **)&_numeric_locale); - if (!ret && _numeric_using_locale) + if (ret == 0 && _numeric_using_locale) _numeric_locale.grouping = __fix_locale_grouping_str(_numeric_locale.grouping); return ret; |
