diff options
author | Joel Sherrill <joel@rtems.org> | 2018-12-05 11:58:59 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2018-12-05 11:58:59 -0600 |
commit | e517fe682a55aa9dbd98057b621ab46012861d85 (patch) | |
tree | 023ad5e4358a476d6560a35c4816288f9a8d2fac /testsuites/psxtests/psxhdrs/dlfcn | |
parent | psxhdrs: Align the code properly to left hand margin (diff) | |
download | rtems-e517fe682a55aa9dbd98057b621ab46012861d85.tar.bz2 |
psxhdrs: Fix warnings
Diffstat (limited to 'testsuites/psxtests/psxhdrs/dlfcn')
-rw-r--r-- | testsuites/psxtests/psxhdrs/dlfcn/dlerror.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/testsuites/psxtests/psxhdrs/dlfcn/dlerror.c b/testsuites/psxtests/psxhdrs/dlfcn/dlerror.c index 4ba13da61d..7393761de4 100644 --- a/testsuites/psxtests/psxhdrs/dlfcn/dlerror.c +++ b/testsuites/psxtests/psxhdrs/dlfcn/dlerror.c @@ -26,14 +26,11 @@ int test( void ); - int result = 1; - int test( void ) { - char *errstr; + const char *errstr; errstr = dlerror(); - result = 0; - return result; + return (errstr != NULL); } |