]> xenbits.xensource.com Git - unikraft/libs/musl.git/commitdiff
Properly cast the system call input and outputs
authorMarco Schlumpp <marco@unikraft.io>
Tue, 18 Apr 2023 12:54:56 +0000 (14:54 +0200)
committerUnikraft <monkey@unikraft.io>
Thu, 4 May 2023 14:30:06 +0000 (14:30 +0000)
On clang, this statement caused compiler errors instead of only
warnings.

Signed-off-by: Marco Schlumpp <marco@unikraft.io>
Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Reviewed-by: Sergiu Moga <sergiu.moga@protonmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #41

__uk_init_tls.c

index 48963d0fd5ab3733f838fc94f4820b388778c20f..01ff96d185c7457eef212e1a54c8c6459dfc654e 100644 (file)
@@ -135,7 +135,7 @@ static int __uk_init_tp(void *p)
         * might happen.
         */
        if (uk_thread_current()) {
-               td->tid = uk_syscall_r_set_tid_address(&td->tid);
+               td->tid = (int)uk_syscall_r_set_tid_address((long)&td->tid);
                if (td->tid < 0)
                        td->tid = 0;
        } else {