diff options
author | ache <ache@FreeBSD.org> | 2002-10-12 11:31:07 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2002-10-12 11:31:07 +0000 |
commit | 6ee6cab0af1241bbc34956a21099ad76a1f007a9 (patch) | |
tree | 71d464b1843f47b6163c36cee5015e3731e5ccd2 /lib/libc | |
parent | b7d872536535fe8afd8ad5080a504fa41a77c095 (diff) | |
download | FreeBSD-src-6ee6cab0af1241bbc34956a21099ad76a1f007a9.zip FreeBSD-src-6ee6cab0af1241bbc34956a21099ad76a1f007a9.tar.gz |
Cosmetic: use LCMONETARY_SIZE_{FULL,MIN} defines like in other places
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/locale/lmonetary.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc/locale/lmonetary.c b/lib/libc/locale/lmonetary.c index ad751f2..1e35bf0 100644 --- a/lib/libc/locale/lmonetary.c +++ b/lib/libc/locale/lmonetary.c @@ -36,7 +36,10 @@ __FBSDID("$FreeBSD$"); extern int __mlocale_changed; extern const char * __fix_locale_grouping_str(const char *); -#define LCMONETARY_SIZE (sizeof(struct lc_monetary_T) / sizeof(char *)) +#define LCMONETARY_SIZE_FULL (sizeof(struct lc_monetary_T) / sizeof(char *)) +#define LCMONETARY_SIZE_MIN \ + (offsetof(struct lc_monetary_T, int_p_cs_precedes) / \ + sizeof(char *)) static char empty[] = ""; static char numempty[] = { CHAR_MAX, '\0'}; @@ -86,9 +89,7 @@ __monetary_load_locale(const char *name) ret = __part_load_locale(name, &_monetary_using_locale, _monetary_locale_buf, "LC_MONETARY", - LCMONETARY_SIZE, - offsetof(struct lc_monetary_T, int_p_cs_precedes) / - sizeof(char *), + LCMONETARY_SIZE_FULL, LCMONETARY_SIZE_MIN, (const char **)&_monetary_locale); if (ret != _LDP_ERROR) __mlocale_changed = 1; |