summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/dlfcn
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2018-12-05 11:58:59 -0600
committerJoel Sherrill <joel@rtems.org>2018-12-05 11:58:59 -0600
commite517fe682a55aa9dbd98057b621ab46012861d85 (patch)
tree023ad5e4358a476d6560a35c4816288f9a8d2fac /testsuites/psxtests/psxhdrs/dlfcn
parentpsxhdrs: Align the code properly to left hand margin (diff)
downloadrtems-e517fe682a55aa9dbd98057b621ab46012861d85.tar.bz2
psxhdrs: Fix warnings
Diffstat (limited to 'testsuites/psxtests/psxhdrs/dlfcn')
-rw-r--r--testsuites/psxtests/psxhdrs/dlfcn/dlerror.c7
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);
}