forked from len0rd/rockbox
Removed picky warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7116 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4d71da006f
commit
a19acbdadd
6 changed files with 6 additions and 6 deletions
|
|
@ -198,7 +198,7 @@ struct codec_api {
|
|||
long* current_tick;
|
||||
long (*default_event_handler)(long event);
|
||||
long (*default_event_handler_ex)(long event, void (*callback)(void *), void *parameter);
|
||||
int (*create_thread)(void* function, void* stack, int stack_size, const char *name);
|
||||
int (*create_thread)(void (*function)(void), void* stack, int stack_size, const char *name);
|
||||
void (*remove_thread)(int threadnum);
|
||||
void (*reset_poweroff_timer)(void);
|
||||
#ifndef SIMULATOR
|
||||
|
|
|
|||
|
|
@ -263,7 +263,7 @@ struct plugin_api {
|
|||
long* current_tick;
|
||||
long (*default_event_handler)(long event);
|
||||
long (*default_event_handler_ex)(long event, void (*callback)(void *), void *parameter);
|
||||
int (*create_thread)(void* function, void* stack, int stack_size, const char *name);
|
||||
int (*create_thread)(void (*function)(void), void* stack, int stack_size, const char *name);
|
||||
void (*remove_thread)(int threadnum);
|
||||
void (*reset_poweroff_timer)(void);
|
||||
#ifndef SIMULATOR
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
#define MAXTHREADS 10
|
||||
#define DEFAULT_STACK_SIZE 0x400 /* Bytes */
|
||||
|
||||
int create_thread(void* function, void* stack, int stack_size,
|
||||
int create_thread(void (*function)(void), void* stack, int stack_size,
|
||||
const char *name);
|
||||
void remove_thread(int threadnum);
|
||||
void switch_thread(void);
|
||||
|
|
|
|||
|
|
@ -261,7 +261,7 @@ void wake_up_thread(void)
|
|||
* Return ID if context area could be allocated, else -1.
|
||||
*---------------------------------------------------------------------------
|
||||
*/
|
||||
int create_thread(void* function, void* stack, int stack_size,
|
||||
int create_thread(void (*function)(void), void* stack, int stack_size,
|
||||
const char *name)
|
||||
{
|
||||
unsigned int i;
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ DWORD WINAPI runthread (LPVOID lpParameter)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int create_thread(void* fp, void* sp, int stk_size)
|
||||
int create_thread(void (*fp)(void), void* sp, int stk_size)
|
||||
{
|
||||
DWORD dwThreadID;
|
||||
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ void newfunc(void (*func)(void))
|
|||
}
|
||||
|
||||
|
||||
int create_thread(void* fp, void* sp, int stk_size)
|
||||
int create_thread(void (*fp)(void), void* sp, int stk_size)
|
||||
{
|
||||
pthread_t tid;
|
||||
int i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue