Permalink
Browse files

Remove unused dll_lib.c code

I went to fix this warning from oclint:

src/lib/libdll/dll_lib.c:173:9: String copy function overflows destination buffer

But since none of the code in that module is used, not even in the old
beta branch, there isn't much point maintaining it so remove it.
  • Loading branch information...
krader1961 committed Nov 2, 2018
1 parent dc6761a commit 5f538fa5e637a86f530b93fb19a423ce94249226
Showing with 1 addition and 204 deletions.
  1. +0 −3 features/dll/dll.c
  2. +0 −6 src/lib/libast/include/cdt.h
  3. +0 −191 src/lib/libdll/dll_lib.c
  4. +0 −3 src/lib/libdll/dlldefs.h
  5. +1 −1 src/lib/libdll/meson.build
@@ -141,9 +141,6 @@ int main() {
"extern void* dllplug(const char*, const char*, const char*, int, char*, "
"size_t);\n");
printf("extern void* dllfind(const char*, const char*, int, char*, size_t);\n");
printf("extern Dllnames_t* dllnames(const char*, const char*, Dllnames_t*);\n");
printf("extern void* dll_lib(Dllnames_t*, unsigned long, Dllerror_f, void*);\n");
printf("extern void* dllmeth(const char*, const char*, unsigned long);\n");
printf("extern void* dllopen(const char*, int);\n");
printf("extern void* dllnext(int);\n");
printf("extern void* dlllook(void*, const char*);\n");
@@ -239,12 +239,6 @@ extern ssize_t dtstat(Dt_t *, Dtstat_t *);
extern Dt_t *dtopen(Dtdisc_t *, Dtmethod_t *);
#if !defined(_CDTLIB_H)
extern void *dllmeth(const char *, const char *, unsigned long);
#endif
/* internal functions for translating among holder, object and key */
#define _DT(dt) ((Dt_t *)(dt))

This file was deleted.

Oops, something went wrong.
@@ -81,9 +81,6 @@ extern void *dllplugin(const char *, const char *, const char *, unsigned long,
int, char *, size_t);
extern void *dllplug(const char *, const char *, const char *, int, char *, size_t);
extern void *dllfind(const char *, const char *, int, char *, size_t);
extern Dllnames_t *dllnames(const char *, const char *, Dllnames_t *);
extern void *dll_lib(Dllnames_t *, unsigned long, Dllerror_f, void *);
extern void *dllmeth(const char *, const char *, unsigned long);
extern void *dllopen(const char *, int);
extern void *dllnext(int);
extern void *dlllook(void *, const char *);
@@ -1,4 +1,4 @@
libdll_files = ['dlfcn.c', 'dllcheck.c', 'dllerror.c', 'dllfind.c', 'dll_lib.c', 'dlllook.c',
libdll_files = ['dlfcn.c', 'dllcheck.c', 'dllerror.c', 'dllfind.c', 'dlllook.c',
'dllnext.c', 'dllopen.c', 'dllplug.c', 'dllscan.c']
libdll_c_args = shared_c_args + [

0 comments on commit 5f538fa

Please sign in to comment.