summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorphantom <phantom@FreeBSD.org>2005-02-27 14:54:23 +0000
committerphantom <phantom@FreeBSD.org>2005-02-27 14:54:23 +0000
commit31651f25d817b24f6d2b1ef090ac6120d90ed86a (patch)
tree83a270a0a72ed8941e4c92387b1b37a4965eeddc /lib
parent7c1e0a15c75cb7e26dbd3de5bd72484334f59f28 (diff)
downloadFreeBSD-src-31651f25d817b24f6d2b1ef090ac6120d90ed86a.zip
FreeBSD-src-31651f25d817b24f6d2b1ef090ac6120d90ed86a.tar.gz
ANSI'fy prototypes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/locale/collate.c10
-rw-r--r--lib/libc/locale/collcmp.c3
-rw-r--r--lib/libc/locale/runetype.c3
3 files changed, 5 insertions, 11 deletions
diff --git a/lib/libc/locale/collate.c b/lib/libc/locale/collate.c
index 90c78ef..82fe8bf 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 480be82..313e043 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 be40d05..71e9c86 100644
--- a/lib/libc/locale/runetype.c
+++ b/lib/libc/locale/runetype.c
@@ -41,8 +41,7 @@ __FBSDID("$FreeBSD$");
#include <runetype.h>
unsigned long
-___runetype(c)
- __ct_rune_t c;
+___runetype(__ct_rune_t c)
{
size_t lim;
_RuneRange *rr = &_CurrentRuneLocale->__runetype_ext;
OpenPOWER on IntegriCloud