2011-10-15 Ralf Corsépius <ralf.corsepius@rtems.org>

* psxhdrs/key01.c, psxhdrs/key02.c, psxhdrs/key03.c,
	psxhdrs/key04.c: Let test() return values (avoid warnings).
This commit is contained in:
Ralf Corsepius
2011-10-15 09:19:50 +00:00
parent 003999c44d
commit 63f4be9999
5 changed files with 18 additions and 8 deletions

View File

@@ -1,5 +1,7 @@
2011-10-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* psxhdrs/key01.c, psxhdrs/key02.c, psxhdrs/key03.c,
psxhdrs/key04.c: Let test() return values (avoid warnings).
* psxhdrs/clock01.c, psxhdrs/clock02.c, psxhdrs/clock03.c,
psxhdrs/clock04.c, psxhdrs/clock05.c, psxhdrs/clock06.c:
Let test() return values (avoid warnings).

View File

@@ -22,7 +22,7 @@
#error "rtems is supposed to have pthread_key_create"
#endif
void test( void );
int test( void );
void key_destructor( void *argument );
void key_destructor(
@@ -31,10 +31,12 @@ void key_destructor(
{
}
void test( void )
int test( void )
{
pthread_key_t key;
int result;
result = pthread_key_create( &key, key_destructor );
return result;
}

View File

@@ -22,9 +22,9 @@
#error "rtems is supposed to have pthread_setspecific"
#endif
void test( void );
int test( void );
void test( void )
int test( void )
{
pthread_key_t key;
int value;
@@ -34,4 +34,6 @@ void test( void )
value = 0;
result = pthread_setspecific( key, &value );
return result;
}

View File

@@ -22,9 +22,9 @@
#error "rtems is supposed to have pthread_getspecific"
#endif
void test( void );
int test( void );
void test( void )
int test( void )
{
pthread_key_t key;
void *value;
@@ -32,4 +32,6 @@ void test( void )
key = 0;
value = pthread_getspecific( key );
return (value != 0);
}

View File

@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_key_delete"
#endif
void test( void );
int test( void );
void test( void )
int test( void )
{
pthread_key_t key = 0;
int result;
result = pthread_key_delete( key );
return result;
}