mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
Some minor fix on psxhdrs
This commit is contained in:
committed by
Joel Sherrill
parent
c1912df285
commit
4bd2f802a9
@@ -40,8 +40,6 @@
|
||||
|
||||
int test( void );
|
||||
|
||||
int result = 1;
|
||||
|
||||
int test( void )
|
||||
{
|
||||
sem_t *sem1;
|
||||
@@ -51,7 +49,6 @@ int test( void )
|
||||
value = 1;
|
||||
|
||||
sem1 = sem_open( "sem", oflag, 0777, value );
|
||||
(void) sem1;
|
||||
|
||||
return result;
|
||||
return ( sem1 != NULL );
|
||||
}
|
||||
|
||||
@@ -38,15 +38,12 @@
|
||||
|
||||
int test( void );
|
||||
|
||||
int result = 1;
|
||||
|
||||
int test( void )
|
||||
{
|
||||
auto char buffer[50];
|
||||
|
||||
bcopy( "Hello ", buffer, 6 );
|
||||
bcopy( "world", &buffer[6], 6 );
|
||||
result = 0;
|
||||
|
||||
return result;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -38,16 +38,12 @@
|
||||
|
||||
int test( void );
|
||||
|
||||
int result = 1;
|
||||
|
||||
int test( void )
|
||||
{
|
||||
char *p;
|
||||
char *string = "This is a string for testing";
|
||||
|
||||
p = index( string, 'i' );
|
||||
(void) p;
|
||||
result = 0;
|
||||
|
||||
return result;
|
||||
return ( p != NULL );
|
||||
}
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user