From ef78b064d4380449ba3dfe28d4d55818e60c4071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Mon, 3 Nov 1997 04:18:37 +0100 Subject: [PATCH] Removed again. Rev: src/dynamic_load.c:1.22 --- src/dynamic_load.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/dynamic_load.c b/src/dynamic_load.c index a752bc4b75..75565d8621 100644 --- a/src/dynamic_load.c +++ b/src/dynamic_load.c @@ -6,10 +6,6 @@ # include "module.h" # include "stralloc.h" # include "pike_macros.h" -#ifdef DEBUG -#include "main.h" -#endif /* DEBUG */ - #endif #if !defined(HAVE_DLOPEN) && defined(HAVE_DLD_LINK) && defined(HAVE_DLD_GET_FUNC) @@ -102,11 +98,7 @@ void f_load_module(INT32 args) module_name = sp[-args].u.string->str; module=dlopen(module_name, RTLD_NOW); -#ifdef DEBUG - if (d_flag >= 1) { - fprintf(stderr, "dlopen() called.\n"); - } -#endif /* DEBUG */ + if(!module) { const char *err = dlerror(); -- GitLab