summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/strings/rindex.c
diff options
context:
space:
mode:
authorHimanshu40 <himanshuwindows8.1@gmail.com>2018-12-14 00:53:11 +0530
committerJoel Sherrill <joel@rtems.org>2018-12-14 10:28:33 -0600
commit4bd2f802a93a5724c99fed9caafcbae9ccf41ac0 (patch)
treeee38d9c4c7502d52fbd9d61e59840dfddf968722 /testsuites/psxtests/psxhdrs/strings/rindex.c
parentpsxhdrs: Changed the copyright license to BSD-2-Clause (GCI 2018) (diff)
downloadrtems-4bd2f802a93a5724c99fed9caafcbae9ccf41ac0.tar.bz2
Some minor fix on psxhdrs
Diffstat (limited to '')
-rw-r--r--testsuites/psxtests/psxhdrs/strings/rindex.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/testsuites/psxtests/psxhdrs/strings/rindex.c b/testsuites/psxtests/psxhdrs/strings/rindex.c
index e8e53940ef..aea3efb0ae 100644
--- a/testsuites/psxtests/psxhdrs/strings/rindex.c
+++ b/testsuites/psxtests/psxhdrs/strings/rindex.c
@@ -38,16 +38,12 @@
int test( void );
-int result = 1;
-
int test( void )
{
char *p;
char *string = "This is a string for testing";
p = rindex( string, 'i' );
- (void) p;
- result = 0;
- return result;
+ return ( p != NULL );
}