From f9b5e461bbff822897e07955f2a1e7979a57ec0a Mon Sep 17 00:00:00 2001 From: Alexey Zelkin Date: Sun, 27 Feb 2005 14:54:23 +0000 Subject: [PATCH] ANSI'fy prototypes --- lib/libc/locale/collate.c | 10 +++------- lib/libc/locale/collcmp.c | 3 +-- lib/libc/locale/runetype.c | 3 +-- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/lib/libc/locale/collate.c b/lib/libc/locale/collate.c index 90c78efad2e..82fe8bfd7bd 100644 --- a/lib/libc/locale/collate.c +++ b/lib/libc/locale/collate.c @@ -190,8 +190,7 @@ __collate_load_tables(const char *encoding) } u_char * -__collate_substitute(s) - const u_char *s; +__collate_substitute(const u_char *s) { int dest_len, len, nlen; int delta = strlen(s); @@ -218,9 +217,7 @@ __collate_substitute(s) } void -__collate_lookup(t, len, prim, sec) - const u_char *t; - int *len, *prim, *sec; +__collate_lookup(const u_char *t, int *len, int *prim, int *sec) { struct __collate_st_chain_pri *p2; @@ -240,8 +237,7 @@ __collate_lookup(t, len, prim, sec) } u_char * -__collate_strdup(s) - u_char *s; +__collate_strdup(u_char *s) { u_char *t = strdup(s); diff --git a/lib/libc/locale/collcmp.c b/lib/libc/locale/collcmp.c index 480be8293f9..313e04384f2 100644 --- a/lib/libc/locale/collcmp.c +++ b/lib/libc/locale/collcmp.c @@ -34,8 +34,7 @@ __FBSDID("$FreeBSD$"); * Compare two characters using collate */ -int __collate_range_cmp(c1, c2) - int c1, c2; +int __collate_range_cmp(int c1, int c2) { static char s1[2], s2[2]; diff --git a/lib/libc/locale/runetype.c b/lib/libc/locale/runetype.c index be40d05e518..71e9c862434 100644 --- a/lib/libc/locale/runetype.c +++ b/lib/libc/locale/runetype.c @@ -41,8 +41,7 @@ __FBSDID("$FreeBSD$"); #include unsigned long -___runetype(c) - __ct_rune_t c; +___runetype(__ct_rune_t c) { size_t lim; _RuneRange *rr = &_CurrentRuneLocale->__runetype_ext;