summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorMarco S Hyman <marc@cvs.openbsd.org>2003-04-29 21:30:17 +0000
committerMarco S Hyman <marc@cvs.openbsd.org>2003-04-29 21:30:17 +0000
commit7b778aa2455879c1d86c006e363ced82681144f1 (patch)
treea82dcf8ec8c0b3318691d55604704c60570e5e6b /lib/libc
parent976f4970ea24d7ed92354776444a280afc5fa51c (diff)
remove printf from static dlctl and dlerror stubs. Return -1 if
dlctl called from a static prog. dlerror will display the proper error in if also called. -1 return suggested by drahn@ general ok from several others
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/dlfcn/dlfcn_stubs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/dlfcn/dlfcn_stubs.c b/lib/libc/dlfcn/dlfcn_stubs.c
index 17308285569..5a5fc27fa8c 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.3 2001/12/26 02:27:13 pvalchev Exp $ */
+/* $OpenBSD: dlfcn_stubs.c,v 1.4 2003/04/29 21:30:16 marc Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -72,13 +72,11 @@ dlsym(void *handle, const char *name)
int
dlctl(void *handle, int command, void *data)
{
- printf("Wrong dl symbols!\n");
- return 0;
+ return -1;
}
const char *
dlerror()
{
- printf("Wrong dl symbols!\n");
return "Wrong dl symbols!\n";
}