diff options
author | phantom <phantom@FreeBSD.org> | 2001-02-12 08:56:39 +0000 |
---|---|---|
committer | phantom <phantom@FreeBSD.org> | 2001-02-12 08:56:39 +0000 |
commit | 6b6dc9eade6ff98ed279e5ef748f21d97400fdd5 (patch) | |
tree | 0ddd8257e2ebbc946e49d474a07b192d31e1e05a /lib | |
parent | 1aaea1d55b79a0677db8d44a31ded8bf73ac7488 (diff) | |
download | FreeBSD-src-6b6dc9eade6ff98ed279e5ef748f21d97400fdd5.zip FreeBSD-src-6b6dc9eade6ff98ed279e5ef748f21d97400fdd5.tar.gz |
Make comparsions more clear (per style(9))
Diffstat (limited to 'lib')
-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 c4fb0e8..99c2adf 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 8e98749..f016d85 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 3fea4db..7b6e4b3 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; |