diff options
author | 2003-04-29 21:30:16 +0000 | |
---|---|---|
committer | 2003-04-29 21:30:16 +0000 | |
commit | 8fd5b6503469b7f044b18fc5fa59488cd69ed46e (patch) | |
tree | fa206e70088b70068a46567ef8286f6ea512bd2b /lib/libc | |
parent | Do not define the sparc_interrupt44c symbol on sun4m-only kernel, this is (diff) | |
download | wireguard-openbsd-8fd5b6503469b7f044b18fc5fa59488cd69ed46e.tar.xz wireguard-openbsd-8fd5b6503469b7f044b18fc5fa59488cd69ed46e.zip |
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.c | 6 |
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"; } |