]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-linux/uio-module-drv.git/commitdiff
tests: Use char instead of int8_t in main signature master 02.03.01.00
authorRyan Eatmon <reatmon@ti.com>
Mon, 2 May 2022 18:31:55 +0000 (13:31 -0500)
committerRyan Eatmon <reatmon@ti.com>
Mon, 2 May 2022 18:31:55 +0000 (13:31 -0500)
int8_t is a define in C99 which is flagged by C compiler ( clang )

Fixes errors like below

pruss_uio_test.c:264:6: error: second parameter of 'main' (argument array) must be of type 'char **'
void main (int32_t argc, int8_t **argv)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
test/gen_ipc_int.c
test/prussdrv_test/test/pruss_uio_test.c
test/uio_cic2_int_multithread_test.c
test/uio_int_test.c
test/uio_mem_test.c

index 2be3a9de4aa436f9542e61e911b80a03cb93552e..313c76aae85e530f189ee1ad2e0fa61fd75cdaad 100644 (file)
@@ -26,7 +26,7 @@ static int64_t clock_diff (struct timespec *start, struct timespec *end)
              + end->tv_nsec - start->tv_nsec;
 }
 
-void main(int32_t argc, int8_t **argv)
+void main(int32_t argc, char **argv)
 {
        int size; 
        char *map ;
index 5af4a2c5cd88d0e186d59cf451e2fe30450b8773..7391fbd2a7be5cc7434d2b8a33a3e3adafd5098a 100644 (file)
@@ -261,7 +261,7 @@ int bsp_init()
 
 }
 
-void main (int32_t argc, int8_t **argv)
+void main (int32_t argc, char **argv)
 {
     int ret_val;
     
index 0d9f126014dd41943c8bdf4bffbecca78b96da75..15db958c9e8508cbf7cb396be54fa458769407f4 100755 (executable)
@@ -287,7 +287,7 @@ void *wait_inthread_for_interrupt(void *arg)
        }
 }
 
-void main(int32_t argc, int8_t **argv)
+void main(int32_t argc, char **argv)
 {
        thread_arg_t thread_arg[MAX_NUM_THREADS];
        int ret, err;
index 7095a0aee443264389a07b8d96a316348bd9faf7..e0ba5a9fb023c35cf3e8c7f2fc1146c9cb78c455 100644 (file)
@@ -161,7 +161,7 @@ static int64_t clock_diff (struct timespec *start, struct timespec *end)
              + end->tv_nsec - start->tv_nsec;
 }
 
-void main(int32_t argc, int8_t **argv)
+void main(int32_t argc, char **argv)
 {
        int  fd_uio;
        int ret;
index aad13acceb40dee7b6835cfe7e15cdb65d2be7e8..3cdba37d109bab0f78ca50033cc5031a8b38a77e 100644 (file)
@@ -121,7 +121,7 @@ err_exit1:
        return ret;
 }
 
-void main(int32_t argc, int8_t **argv)
+void main(int32_t argc, char **argv)
 {
        int  fd_map;
        int ret;