From 6b6dc9eade6ff98ed279e5ef748f21d97400fdd5 Mon Sep 17 00:00:00 2001 From: phantom Date: Mon, 12 Feb 2001 08:56:39 +0000 Subject: Make comparsions more clear (per style(9)) --- lib/libc/locale/lmessages.c | 4 ++-- lib/libc/locale/lmonetary.c | 2 +- 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; -- cgit v1.1