Solaris specific fixes.

This commit is contained in:
Patrik Stridvall 2000-07-28 22:21:38 +00:00 committed by Alexandre Julliard
parent 09be9d0d14
commit 4b8b3158d8
1 changed files with 5 additions and 2 deletions

View File

@ -75,7 +75,7 @@ static void test_id(int id);
static int check_languages(node_t *head);
static lan_blk_t *block_messages(node_t *head);
static void add_cpxlat(int lan, int cpin, int cpout);
cp_xlat_t *find_cpxlat(int lan);
static cp_xlat_t *find_cpxlat(int lan);
%}
@ -650,9 +650,12 @@ static void add_cpxlat(int lan, int cpin, int cpout)
qsort(cpxlattab, ncpxlattab, sizeof(*cpxlattab), sc_xlat);
}
cp_xlat_t *find_cpxlat(int lan)
static cp_xlat_t *find_cpxlat(int lan)
{
cp_xlat_t t;
if(!cpxlattab) return NULL;
t.lan = lan;
return (cp_xlat_t *)bsearch(&t, cpxlattab, ncpxlattab, sizeof(*cpxlattab), sc_xlat);
}