ANSI'fy prototypes

This commit is contained in:
Alexey Zelkin 2005-02-27 14:54:23 +00:00
parent 75667314a9
commit f9b5e461bb
3 changed files with 5 additions and 11 deletions

View file

@ -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);

View file

@ -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];

View file

@ -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;