diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-02-23 05:43:09 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-02-23 05:43:09 -0500 |
commit | d8b587796f7cfa0c3aa780ad19afe2e30ce84a09 (patch) | |
tree | 2093181217f6d42dbf85e4fde09912e7d4b438c9 /src | |
parent | adbeefbebdae8ef48b3a46e9bb7700678d42631f (diff) | |
download | musl-d8b587796f7cfa0c3aa780ad19afe2e30ce84a09.tar.gz musl-d8b587796f7cfa0c3aa780ad19afe2e30ce84a09.tar.bz2 musl-d8b587796f7cfa0c3aa780ad19afe2e30ce84a09.tar.xz musl-d8b587796f7cfa0c3aa780ad19afe2e30ce84a09.zip |
mostly-cosmetic fixups to x32 port merge
Diffstat (limited to 'src')
-rw-r--r-- | src/internal/syscall.h | 7 | ||||
-rw-r--r-- | src/thread/cancel_dummy.c | 5 | ||||
-rw-r--r-- | src/thread/cancel_impl.c | 10 |
3 files changed, 11 insertions, 11 deletions
diff --git a/src/internal/syscall.h b/src/internal/syscall.h index b203d6bb..88fc89c9 100644 --- a/src/internal/syscall.h +++ b/src/internal/syscall.h @@ -5,11 +5,8 @@ #include "syscall_arch.h" #ifndef __scc -#define __scc(X) (long) (X) -#endif - -#ifndef syscall_arg_t -#define syscall_arg_t long +#define __scc(X) ((long) (X)) +typedef long syscall_arg_t; #endif #if defined(__PIC__) && (100*__GNUC__+__GNUC_MINOR__ >= 303) diff --git a/src/thread/cancel_dummy.c b/src/thread/cancel_dummy.c index cc872375..b630b02c 100644 --- a/src/thread/cancel_dummy.c +++ b/src/thread/cancel_dummy.c @@ -1,8 +1,9 @@ #include "pthread_impl.h" #include "syscall.h" -static long sccp(syscall_arg_t nr, syscall_arg_t u, syscall_arg_t v, - syscall_arg_t w, syscall_arg_t x, syscall_arg_t y, syscall_arg_t z) +static long sccp(syscall_arg_t nr, + syscall_arg_t u, syscall_arg_t v, syscall_arg_t w, + syscall_arg_t x, syscall_arg_t y, syscall_arg_t z) { return (__syscall)(nr, u, v, w, x, y, z); } diff --git a/src/thread/cancel_impl.c b/src/thread/cancel_impl.c index 134fd7d3..c835813a 100644 --- a/src/thread/cancel_impl.c +++ b/src/thread/cancel_impl.c @@ -9,11 +9,13 @@ void __cancel() pthread_exit(PTHREAD_CANCELED); } -long __syscall_cp_asm(volatile void *, syscall_arg_t, syscall_arg_t, syscall_arg_t, - syscall_arg_t, syscall_arg_t, syscall_arg_t, syscall_arg_t); +long __syscall_cp_asm(volatile void *, syscall_arg_t, + syscall_arg_t, syscall_arg_t, syscall_arg_t, + syscall_arg_t, syscall_arg_t, syscall_arg_t); -long (__syscall_cp)(syscall_arg_t nr, syscall_arg_t u, syscall_arg_t v, syscall_arg_t w, - syscall_arg_t x, syscall_arg_t y, syscall_arg_t z) +long (__syscall_cp)(syscall_arg_t nr, + syscall_arg_t u, syscall_arg_t v, syscall_arg_t w, + syscall_arg_t x, syscall_arg_t y, syscall_arg_t z) { pthread_t self; long r; |