diff options
author | Matthias Huetsch <mhu@openoffice.org> | 2003-04-16 09:19:57 +0000 |
---|---|---|
committer | Matthias Huetsch <mhu@openoffice.org> | 2003-04-16 09:19:57 +0000 |
commit | 17bbbf0614182c6b2d6094ef426f06db4d26debd (patch) | |
tree | 7cb84ea6b8d1e6c3734e4a758a1ad1d770559bfc /soltools/checkdll | |
parent | e189dd55fd73402954007889c9907cc3f10eecda (diff) |
#100000# #i11945# Symbol 'GetVersionInfo' is not required. Print warning, but exit with success.
Diffstat (limited to 'soltools/checkdll')
-rw-r--r-- | soltools/checkdll/checkdll.c | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/soltools/checkdll/checkdll.c b/soltools/checkdll/checkdll.c index b64a21ddd4d2..7c3f944f0d4b 100644 --- a/soltools/checkdll/checkdll.c +++ b/soltools/checkdll/checkdll.c @@ -2,9 +2,9 @@ * * $RCSfile: checkdll.c,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: hr $ $Date: 2001-08-28 11:15:18 $ + * last change: $Author: mhu $ $Date: 2003-04-16 10:19:57 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -157,24 +157,26 @@ int main(int argc, char *argv[]) #else /* MACOSX */ - if ( (phandle = dlopen(argv[1], RTLD_NOW)) != NULL ) { - if ( (pfun = (char *(*)(void))dlsym(phandle, psymbol)) != NULL ) { + if ( (phandle = dlopen(argv[1], RTLD_NOW)) != NULL ) + { + if ( (pfun = (char *(*)(void))dlsym(phandle, psymbol)) != NULL ) + { printf(": ok\n"); -#ifdef NO_UNLOAD_CHECK - _exit(0); -#else - dlclose(phandle); -#endif - return 0; } - } - printf(": ERROR: %s\n", dlerror()); - if (phandle) + else + { + printf(": WARNING: %s\n", dlerror()); + } + #ifdef NO_UNLOAD_CHECK - _exit(3); + _exit(0); #else dlclose(phandle); #endif + return 0; + } + + printf(": ERROR: %s\n", dlerror()); return 3; #endif /* MACOSX */ |