summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorBernd Schmidt <bernds_cb1@t-online.de>2007-12-03 23:13:10 +0000
committerBernd Schmidt <bernds_cb1@t-online.de>2007-12-03 23:13:10 +0000
commitad989e28a40d78faa9ac6916355e8f1482900a35 (patch)
treef3ebb005db69485d11750a70c295e18bf196418f /ldso
parentc0008412eb2f37042adc360577fe8f234b3c095f (diff)
Fix a few warnings introduced by my previous commits.
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/dl-hash.c4
-rw-r--r--ldso/libdl/libdl.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/ldso/ldso/dl-hash.c b/ldso/ldso/dl-hash.c
index daa407597..f9c316281 100644
--- a/ldso/ldso/dl-hash.c
+++ b/ldso/ldso/dl-hash.c
@@ -343,7 +343,7 @@ char *_dl_lookup_hash(const char *name, struct dyn_elf *rpnt,
if (tpntp)
*tpntp = tpnt;
#endif
- return DL_FIND_HASH_VALUE (tpnt, type_class, sym);
+ return (char *) DL_FIND_HASH_VALUE (tpnt, type_class, sym);
default: /* Local symbols not handled here */
break;
}
@@ -353,7 +353,7 @@ char *_dl_lookup_hash(const char *name, struct dyn_elf *rpnt,
if (tpntp)
*tpntp = weak_tpnt;
#endif
- return DL_FIND_HASH_VALUE (weak_tpnt, type_class, weak_sym);
+ return (char *) DL_FIND_HASH_VALUE (weak_tpnt, type_class, weak_sym);
}
#ifdef __FDPIC__
if (tpntp)
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c
index 9a6714abf..4e909a16f 100644
--- a/ldso/libdl/libdl.c
+++ b/ldso/libdl/libdl.c
@@ -447,8 +447,8 @@ void *dlsym(void *vhandle, const char *name)
struct dyn_elf *rpnt;
void *ret;
/* Nastiness to support underscore prefixes. */
- char tmp_buf[80];
#ifndef __UCLIBC_NO_UNDERSCORES__
+ char tmp_buf[80];
char *name2 = tmp_buf;
size_t nlen = strlen (name) + 1;
if (nlen + 1 > sizeof (tmp_buf))