diff options
author | Martin Hollmichel <mh@openoffice.org> | 2003-07-17 09:26:34 +0000 |
---|---|---|
committer | Martin Hollmichel <mh@openoffice.org> | 2003-07-17 09:26:34 +0000 |
commit | 50c140dec870371282a224f860d1b6f2655116dc (patch) | |
tree | 2039896f872b3c2a0cc47a80868cce2f883c509f /soltools | |
parent | 1768709af0e2cc06794e53746cc7893d8965ae7f (diff) |
chg: error to warning, #100000#
Diffstat (limited to 'soltools')
-rw-r--r-- | soltools/checkdll/checkdll.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/soltools/checkdll/checkdll.c b/soltools/checkdll/checkdll.c index 5f595db41eee..bfa1da623651 100644 --- a/soltools/checkdll/checkdll.c +++ b/soltools/checkdll/checkdll.c @@ -2,9 +2,9 @@ * * $RCSfile: checkdll.c,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: hr $ $Date: 2003-07-16 17:27:23 $ + * last change: $Author: mh $ $Date: 2003-07-17 10:26:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -135,14 +135,14 @@ int main(int argc, char *argv[]) #else // Mac OS X can't unload dylibs #endif - return 0; } else { - printf(": ERROR: symbol %s not found\n", psymbol); + printf(": WARNING: symbol %s not found\n", psymbol); } + return 0; } else { - printf(": ERROR: %s is not a valid dylib name\n", argv[1]); + printf(": WARNING: %s is not a valid dylib name\n", argv[1]); } - return 3; + return 3; // fixme use NSLinkEditError() for better error messages @@ -151,23 +151,23 @@ int main(int argc, char *argv[]) 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 */ } + |