diff options
Diffstat (limited to 'pseudo_wrappers.c')
-rw-r--r-- | pseudo_wrappers.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/pseudo_wrappers.c b/pseudo_wrappers.c index 12bc541..ad3a8c0 100644 --- a/pseudo_wrappers.c +++ b/pseudo_wrappers.c @@ -131,7 +131,6 @@ static void pseudo_init_one_wrapper(pseudo_function *func) { int (*f)(void) = (int (*)(void)) NULL; - char *e; if (*func->real != NULL) { /* already initialized */ return; @@ -147,22 +146,11 @@ pseudo_init_one_wrapper(pseudo_function *func) { f = dlsym(RTLD_NEXT, func->name); if (f) { *func->real = f; - } else { -#ifdef PSEUDO_NO_REAL_AT_FUNCTIONS - char *s = func->name; - s += strlen(s) - 2; - /* *at() don't have to exist */ - if (!strcmp(s, "at")) { - return; - } -#endif - e = dlerror(); - if (e != NULL) { - pseudo_diag("No real function for %s: %s\n", func->name, e); - } else { - pseudo_diag("No real function for %s, but dlerror NULL.\n", func->name); - } } + /* it turns out that in some cases, we get apparently-harmless + * errors if a function is missing, and that printing output + * for these seems unhelpful. so we no longer do that. + */ } void |