diff options
author | phantom <phantom@FreeBSD.org> | 2003-06-20 13:29:43 +0000 |
---|---|---|
committer | phantom <phantom@FreeBSD.org> | 2003-06-20 13:29:43 +0000 |
commit | 86727408033cab3c367faf2382dbbf20649660c9 (patch) | |
tree | 0f162fbabd2411f3591c65fb32ef1cc31fe757bd /usr.bin/locale/locale.c | |
parent | 867efbedc06d18f9015e686a6907ddc677ee57bc (diff) | |
download | FreeBSD-src-86727408033cab3c367faf2382dbbf20649660c9.zip FreeBSD-src-86727408033cab3c367faf2382dbbf20649660c9.tar.gz |
Fix few typos and remove two unneeded checks
Noticed by: ache
Diffstat (limited to 'usr.bin/locale/locale.c')
-rw-r--r-- | usr.bin/locale/locale.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/locale/locale.c b/usr.bin/locale/locale.c index f480b19..f2e9e82 100644 --- a/usr.bin/locale/locale.c +++ b/usr.bin/locale/locale.c @@ -27,7 +27,7 @@ */ /* - * XXX: implement missing int_* (LC_MONETARY) and era_* (LC_CTYIME) keywords + * XXX: implement missing int_* (LC_MONETARY) and era_* (LC_CTIME) keywords * (require libc modification) * * XXX: correctly handle reserved 'charmap' keyword and '-m' option (require @@ -115,7 +115,6 @@ struct _kwinfo { { "radixchar", 1, LC_NUMERIC, RADIXCHAR }, /* compat */ { "thousep", 1, LC_NUMERIC, THOUSEP}, /* compat */ - { "currency_symbol", 1, LC_MONETARY, KW_CURRENCY_SYMBOL }, /*compat*/ { "int_curr_symbol", 1, LC_MONETARY, KW_INT_CURR_SYMBOL }, { "currency_symbol", 1, LC_MONETARY, KW_CURRENCY_SYMBOL }, { "mon_decimal_point", 1, LC_MONETARY, KW_MON_DECIMAL_POINT }, @@ -362,7 +361,7 @@ showlocale(void) setlocale(LC_ALL, ""); lang = getenv("LANG"); - if (lang == NULL || *lang == '\0') { + if (lang == NULL) { lang = ""; } printf("LANG=%s\n", lang); @@ -388,7 +387,7 @@ showlocale(void) } vval = getenv("LC_ALL"); - if (vval == NULL || *vval == '\0') { + if (vval == NULL) { vval = ""; } printf("LC_ALL=%s\n", vval); |