mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtksh/findsym.c: fix compiler warnings
This commit is contained in:
parent
428223ee80
commit
10f2382561
1 changed files with 3 additions and 3 deletions
|
@ -50,20 +50,20 @@
|
||||||
* as requested by a DtLoadWidget request.
|
* as requested by a DtLoadWidget request.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
unsigned long
|
void *
|
||||||
fsym(
|
fsym(
|
||||||
char *str,
|
char *str,
|
||||||
int lib )
|
int lib )
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
long addr;
|
void * addr;
|
||||||
|
|
||||||
if (liblist == NULL)
|
if (liblist == NULL)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
while (liblist[i].dll)
|
while (liblist[i].dll)
|
||||||
{
|
{
|
||||||
if (addr = dlsym(liblist[i].dll, str))
|
if (addr = dlsym(liblist[i].dll, str))
|
||||||
return((unsigned long)addr);
|
return(addr);
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue