From cc37572108a2e59b837798858ebee657c950641c Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 30 Aug 2002 20:39:53 +0000 Subject: Style fix --- lib/libc/locale/collate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/libc/locale/collate.c b/lib/libc/locale/collate.c index 614d5d5..ca6040e 100644 --- a/lib/libc/locale/collate.c +++ b/lib/libc/locale/collate.c @@ -161,7 +161,7 @@ __collate_load_tables(const char *encoding) FREAD(TMP_substitute_table, sizeof(__collate_substitute_table), 1, fp); FREAD(TMP_char_pri_table, sizeof(__collate_char_pri_table), 1, fp); FREAD(TMP_chain_pri_table, - sizeof(*__collate_chain_pri_table) * chains, 1, fp); + sizeof(*__collate_chain_pri_table), chains, fp); (void)fclose(fp); (void)strcpy(collate_encoding, encoding); @@ -280,8 +280,8 @@ __collate_print_tables() printf("\t'%c' --> \"%s\"\n", i, __collate_substitute_table[i]); printf("Chain priority table:\n"); - for (p2 = __collate_chain_pri_table; p2->str[0]; p2++) - printf("\t\"%s\" : %d %d\n\n", p2->str, p2->prim, p2->sec); + for (p2 = __collate_chain_pri_table; p2->str[0] != '\0'; p2++) + printf("\t\"%s\" : %d %d\n", p2->str, p2->prim, p2->sec); printf("Char priority table:\n"); for (i = 0; i < UCHAR_MAX + 1; i++) printf("\t'%c' : %d %d\n", i, __collate_char_pri_table[i].prim, -- cgit v1.1