dtksh/findsym.c: fix compiler warnings

This commit is contained in:
Chase
2021-01-01 14:36:36 -06:00
committed by Jon Trulson
parent 428223ee80
commit 10f2382561

View File

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