fix warning building dynlink.c stub for static libc
struct dso was not defined in this case, and it's not needed in the code that was using it anyway; void pointers work just as well.
This commit is contained in:
parent
cdc5c74c6a
commit
4d98280388
1 changed files with 2 additions and 2 deletions
|
|
@ -1091,7 +1091,7 @@ end:
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int invalid_dso_handle(struct dso *h)
|
static int invalid_dso_handle(void *h)
|
||||||
{
|
{
|
||||||
struct dso *p;
|
struct dso *p;
|
||||||
for (p=head; p; p=p->next) if (h==p) return 0;
|
for (p=head; p; p=p->next) if (h==p) return 0;
|
||||||
|
|
@ -1246,7 +1246,7 @@ int dl_iterate_phdr(int(*callback)(struct dl_phdr_info *info, size_t size, void
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
static int invalid_dso_handle(struct dso *h)
|
static int invalid_dso_handle(void *h)
|
||||||
{
|
{
|
||||||
snprintf(errbuf, sizeof errbuf, "Invalid library handle %p", (void *)h);
|
snprintf(errbuf, sizeof errbuf, "Invalid library handle %p", (void *)h);
|
||||||
errflag = 1;
|
errflag = 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue