summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-07-12 10:05:13 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-07-12 10:05:13 +0000
commita19acbdadd036e0d2c1ca000661c86922f775d56 (patch)
treef8cbe3e665a8f886abc2058928e27374cb2c5b4b
parent4d71da006f490ae454d53dd1a74dad7481cb03c1 (diff)
downloadrockbox-a19acbdadd036e0d2c1ca000661c86922f775d56.tar.gz
rockbox-a19acbdadd036e0d2c1ca000661c86922f775d56.tar.bz2
rockbox-a19acbdadd036e0d2c1ca000661c86922f775d56.zip
Removed picky warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7116 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/codecs.h2
-rw-r--r--apps/plugin.h2
-rw-r--r--firmware/export/thread.h2
-rw-r--r--firmware/thread.c2
-rw-r--r--uisimulator/win32/thread-win32.c2
-rw-r--r--uisimulator/x11/thread.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/apps/codecs.h b/apps/codecs.h
index 73a5709328..4d8c95eab0 100644
--- a/apps/codecs.h
+++ b/apps/codecs.h
@@ -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
diff --git a/apps/plugin.h b/apps/plugin.h
index bbef2acb47..36eccfe86f 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -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
diff --git a/firmware/export/thread.h b/firmware/export/thread.h
index a7b5709deb..ad1b6527cd 100644
--- a/firmware/export/thread.h
+++ b/firmware/export/thread.h
@@ -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);
diff --git a/firmware/thread.c b/firmware/thread.c
index 7ddceaa9a1..d6a4a4f3db 100644
--- a/firmware/thread.c
+++ b/firmware/thread.c
@@ -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;
diff --git a/uisimulator/win32/thread-win32.c b/uisimulator/win32/thread-win32.c
index c2e9cef42b..ca973b6662 100644
--- a/uisimulator/win32/thread-win32.c
+++ b/uisimulator/win32/thread-win32.c
@@ -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;
diff --git a/uisimulator/x11/thread.c b/uisimulator/x11/thread.c
index 4288c0ffcb..41f1fad8a7 100644
--- a/uisimulator/x11/thread.c
+++ b/uisimulator/x11/thread.c
@@ -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;