summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/dlfcn.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/dlfcn.c')
-rw-r--r--lib/libc/gen/dlfcn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/dlfcn.c b/lib/libc/gen/dlfcn.c
index 74cdc8b..4a3500d 100644
--- a/lib/libc/gen/dlfcn.c
+++ b/lib/libc/gen/dlfcn.c
@@ -102,7 +102,7 @@ dlopen(const char *name, int mode)
#pragma weak dlsym
void *
-dlsym(void *handle, const char *name)
+dlsym(void * __restrict handle, const char * __restrict name)
{
_rtld_error(sorry);
return NULL;
@@ -168,7 +168,7 @@ dlopen(const char *name, int mode)
}
void *
-dlsym(void *handle, const char *name)
+dlsym(void * __restrict handle, const char * __restrict name)
{
if (__ldso_entry == NULL)
return NULL;
OpenPOWER on IntegriCloud