Example build fix: invalid types of functions.
authorTomasz Wozniak <t.wozniak@samsung.com>
Tue, 13 Jun 2017 13:00:23 +0000 (15:00 +0200)
committerTomasz Wozniak <t.wozniak@samsung.com>
Tue, 13 Jun 2017 13:01:03 +0000 (15:01 +0200)
apps/examples/hello_tash/hello_tash_main.c

index 07d8cb0..c783e0d 100644 (file)
  * 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;
 }
 
 /****************************************************************************