summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-01-16 11:49:00 -0500
committerRich Felker <dalias@aerifal.cx>2013-01-16 11:49:00 -0500
commit4d98280388a21db6913911ff647b2e56338d46cf (patch)
treef7e1f5317b06e77692c40f4948e4f9f95ca09904 /src
parentcdc5c74c6abdb47453f2f7a170ed88b88698dee7 (diff)
downloadmusl-4d98280388a21db6913911ff647b2e56338d46cf.tar.gz
musl-4d98280388a21db6913911ff647b2e56338d46cf.tar.bz2
musl-4d98280388a21db6913911ff647b2e56338d46cf.tar.xz
musl-4d98280388a21db6913911ff647b2e56338d46cf.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/ldso/dynlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c
index 4ce1c3e8..6956f414 100644
--- a/src/ldso/dynlink.c
+++ b/src/ldso/dynlink.c
@@ -1091,7 +1091,7 @@ end:
return p;
}
-static int invalid_dso_handle(struct dso *h)
+static int invalid_dso_handle(void *h)
{
struct dso *p;
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;
}
#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);
errflag = 1;