From 86727408033cab3c367faf2382dbbf20649660c9 Mon Sep 17 00:00:00 2001 From: phantom Date: Fri, 20 Jun 2003 13:29:43 +0000 Subject: Fix few typos and remove two unneeded checks Noticed by: ache --- usr.bin/locale/locale.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'usr.bin') 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); -- cgit v1.1