aboutsummaryrefslogtreecommitdiff
path: root/libdl
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-08-11 15:02:45 -0700
committerElliott Hughes <enh@google.com>2016-08-11 15:02:45 -0700
commit5e071a18ce88d93fcffaebb9e0f62524ae504908 (patch)
tree39f8f753321a562b980e0134dbe98e4400f4be24 /libdl
parentf5042cab109f7136191fd316be1471532d2ddf71 (diff)
downloadbionic-5e071a18ce88d93fcffaebb9e0f62524ae504908.tar.gz
dlerror returns char*, not const char*.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlerror.html: char *dlerror(void); ... The application shall not modify the string returned. Change-Id: I5e684bfd3930c39a2a30ea6fd005a5d5d3e5b181
Diffstat (limited to 'libdl')
-rw-r--r--libdl/libdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdl/libdl.c b/libdl/libdl.c
index b62ee5ccb..4cc4deac8 100644
--- a/libdl/libdl.c
+++ b/libdl/libdl.c
@@ -25,7 +25,7 @@
void* dlopen(const char* filename __unused, int flag __unused) { return 0; }
-const char* dlerror(void) { return 0; }
+char* dlerror(void) { return 0; }
void* dlsym(void* handle __unused, const char* symbol __unused) { return 0; }