fixed warnings by changing the return type of the thread_func's to int32.
"int" seems like a better return type choice, but it is int32 in both the Be headers and the OBOS headers, at least for now. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1255 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1dabea80a1
commit
143c418d4e
@ -12,9 +12,9 @@
|
|||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
|
|
||||||
static void port_test(void);
|
static void port_test(void);
|
||||||
static int port_test_thread_func(void* arg);
|
static int32 port_test_thread_func(void* arg);
|
||||||
|
|
||||||
static int test_thread(void *args)
|
static int32 test_thread(void *args)
|
||||||
{
|
{
|
||||||
int i = (int)args;
|
int i = (int)args;
|
||||||
|
|
||||||
@ -25,18 +25,18 @@ static int test_thread(void *args)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dummy_thread(void *args)
|
static int32 dummy_thread(void *args)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int cpu_eater_thread(void *args)
|
static int32 cpu_eater_thread(void *args)
|
||||||
{
|
{
|
||||||
for(;;)
|
for(;;)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int fpu_cruncher_thread(void *args)
|
static int32 fpu_cruncher_thread(void *args)
|
||||||
{
|
{
|
||||||
double y = *(double *)args;
|
double y = *(double *)args;
|
||||||
double z;
|
double z;
|
||||||
@ -480,7 +480,7 @@ static void port_test(void)
|
|||||||
printf("porttest: end test main thread\n");
|
printf("porttest: end test main thread\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static int port_test_thread_func(void* arg)
|
static int32 port_test_thread_func(void* arg)
|
||||||
{
|
{
|
||||||
int msg_code;
|
int msg_code;
|
||||||
int n;
|
int n;
|
||||||
|
Loading…
Reference in New Issue
Block a user