summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-03-24 01:37:21 +0000
committerderaadt <deraadt@openbsd.org>2013-03-24 01:37:21 +0000
commitca229a5cc81e8c29a180f1b3abc2ebf49b3efda5 (patch)
tree1cc8cdec83499e2f8062a63f292ce77cc0f9f728 /lib/libc
parentpstats is already 0, but the bonus = 0 belongs outside the pointer section (diff)
downloadwireguard-openbsd-ca229a5cc81e8c29a180f1b3abc2ebf49b3efda5.tar.xz
wireguard-openbsd-ca229a5cc81e8c29a180f1b3abc2ebf49b3efda5.zip
dlerror() should not return const char *, as noted by landry
ok guenther
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/dlfcn/dlfcn_stubs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/dlfcn/dlfcn_stubs.c b/lib/libc/dlfcn/dlfcn_stubs.c
index 6342afd8d49..af0dcc2c980 100644
--- a/lib/libc/dlfcn/dlfcn_stubs.c
+++ b/lib/libc/dlfcn/dlfcn_stubs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dlfcn_stubs.c,v 1.11 2009/04/22 07:15:15 guenther Exp $ */
+/* $OpenBSD: dlfcn_stubs.c,v 1.12 2013/03/24 01:37:23 deraadt Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -40,7 +40,7 @@ void *dlopen(const char *libname, int how) __attribute__((weak));
int dlclose(void *handle) __attribute__((weak));
void *dlsym(void *handle, const char *name) __attribute__((weak));
int dlctl(void *handle, int command, void *data) __attribute__((weak));
-const char * dlerror(void) __attribute__((weak));
+char *dlerror(void) __attribute__((weak));
struct dl_info;
int dladdr(const void *addr, struct dl_info *info) __attribute__((weak));
@@ -82,7 +82,7 @@ dlctl(void *handle, int command, void *data)
}
/*ARGSUSED*/
-const char *
+char *
dlerror(void)
{
return "Wrong dl symbols!\n";