diff options
author | Bernd Schmidt <bernds_cb1@t-online.de> | 2007-12-03 23:13:10 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds_cb1@t-online.de> | 2007-12-03 23:13:10 +0000 |
commit | ad989e28a40d78faa9ac6916355e8f1482900a35 (patch) | |
tree | f3ebb005db69485d11750a70c295e18bf196418f | |
parent | c0008412eb2f37042adc360577fe8f234b3c095f (diff) |
Fix a few warnings introduced by my previous commits.
-rw-r--r-- | ldso/ldso/dl-hash.c | 4 | ||||
-rw-r--r-- | ldso/libdl/libdl.c | 2 |
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)) |