summaryrefslogtreecommitdiffstats
path: root/firmware
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 /firmware
parent4d71da006f490ae454d53dd1a74dad7481cb03c1 (diff)
downloadrockbox-a19acbdadd036e0d2c1ca000661c86922f775d56.tar.gz
rockbox-a19acbdadd036e0d2c1ca000661c86922f775d56.zip
Removed picky warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7116 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/thread.h2
-rw-r--r--firmware/thread.c2
2 files changed, 2 insertions, 2 deletions
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;