diff options
Diffstat (limited to 'testsuites/psxtests/psxhdrs/strings/rindex.c')
-rw-r--r-- | testsuites/psxtests/psxhdrs/strings/rindex.c | 6 |
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 ); } |