From: Tomasz Wozniak Date: Tue, 13 Jun 2017 13:00:23 +0000 (+0200) Subject: Example build fix: invalid types of functions. X-Git-Tag: 1.1_Public_Release~505^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af4c65065693b1e3c862a42dffa66444621da545;p=rtos%2Ftinyara.git Example build fix: invalid types of functions. --- diff --git a/apps/examples/hello_tash/hello_tash_main.c b/apps/examples/hello_tash/hello_tash_main.c index 07d8cb0..c783e0d 100644 --- a/apps/examples/hello_tash/hello_tash_main.c +++ b/apps/examples/hello_tash/hello_tash_main.c @@ -69,11 +69,12 @@ * Private Data & Functions ****************************************************************************/ /* example */ -static int hello_example(int argc, char *argv[]) +static void *hello_example(void *arg) { + (void)arg; printf("This is an example to add it in tash\n"); printf("Hello, World!!\n"); - return 0; + return NULL; } /* Call-back function registered in TASH. @@ -83,7 +84,7 @@ static int hello_example(int argc, char *argv[]) * 2. stacksize * 3. register entry function of pthread (example) */ -static void hello_tash_cb(int argc, char **args) +static int hello_tash_cb(int argc, char **args) { pthread_t hello_tash; pthread_attr_t attr; @@ -126,6 +127,7 @@ static void hello_tash_cb(int argc, char **args) #endif printf("hello_tash is finished\n"); + return 0; } /****************************************************************************