From af4c65065693b1e3c862a42dffa66444621da545 Mon Sep 17 00:00:00 2001 From: Tomasz Wozniak Date: Tue, 13 Jun 2017 15:00:23 +0200 Subject: [PATCH] Example build fix: invalid types of functions. --- apps/examples/hello_tash/hello_tash_main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; } /**************************************************************************** -- 2.7.4