Some minor fix on psxhdrs

This commit is contained in:
Himanshu40
2018-12-14 00:53:11 +05:30
committed by Joel Sherrill
parent c1912df285
commit 4bd2f802a9
4 changed files with 4 additions and 18 deletions

View File

@@ -40,8 +40,6 @@
int test( void ); int test( void );
int result = 1;
int test( void ) int test( void )
{ {
sem_t *sem1; sem_t *sem1;
@@ -51,7 +49,6 @@ int test( void )
value = 1; value = 1;
sem1 = sem_open( "sem", oflag, 0777, value ); sem1 = sem_open( "sem", oflag, 0777, value );
(void) sem1;
return result; return ( sem1 != NULL );
} }

View File

@@ -38,15 +38,12 @@
int test( void ); int test( void );
int result = 1;
int test( void ) int test( void )
{ {
auto char buffer[50]; auto char buffer[50];
bcopy( "Hello ", buffer, 6 ); bcopy( "Hello ", buffer, 6 );
bcopy( "world", &buffer[6], 6 ); bcopy( "world", &buffer[6], 6 );
result = 0;
return result; return 0;
} }

View File

@@ -38,16 +38,12 @@
int test( void ); int test( void );
int result = 1;
int test( void ) int test( void )
{ {
char *p; char *p;
char *string = "This is a string for testing"; char *string = "This is a string for testing";
p = index( string, 'i' ); p = index( string, 'i' );
(void) p;
result = 0;
return result; return ( p != NULL );
} }

View File

@@ -38,16 +38,12 @@
int test( void ); int test( void );
int result = 1;
int test( void ) int test( void )
{ {
char *p; char *p;
char *string = "This is a string for testing"; char *string = "This is a string for testing";
p = rindex( string, 'i' ); p = rindex( string, 'i' );
(void) p;
result = 0;
return result; return ( p != NULL );
} }