From e7db46503d07b306056ec70a4290b022e473734b Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 5 Mar 2013 16:17:46 +0100 Subject: [PATCH] Fix printstrbufarg's address argument to be long, not int Signed-off-by: Denys Vlasenko --- linux/syscall.h | 10 ++-------- stream.c | 2 +- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/linux/syscall.h b/linux/syscall.h index 39c0ff26..090b54c3 100644 --- a/linux/syscall.h +++ b/linux/syscall.h @@ -98,7 +98,7 @@ int sys_getgroups32(); int sys_gethostname(); int sys_getitimer(); int sys_getpeername(); -int sys_getpmsg(); +int sys_getpmsg(); /* TODO: non-Linux, remove? */ int sys_getpriority(); int sys_getresuid(); int sys_getrlimit(); @@ -181,7 +181,7 @@ int sys_process_vm_readv(); int sys_process_vm_writev(); int sys_pselect6(); int sys_ptrace(); -int sys_putpmsg(); +int sys_putpmsg(); /* TODO: non-Linux, remove? */ int sys_pwrite(); int sys_pwritev(); int sys_query_module(); @@ -334,12 +334,6 @@ int sys_osf_wait4(); int sys_getpagesize(); #endif -#ifdef IA64 -/* STREAMS stuff */ -int sys_getpmsg(); -int sys_putpmsg(); -#endif - #ifdef MIPS int sys_sysmips(); #endif diff --git a/stream.c b/stream.c index 8656fc03..dc84ab5e 100644 --- a/stream.c +++ b/stream.c @@ -72,7 +72,7 @@ printstrbuf(struct tcb *tcp, struct strbuf *sbp, int getting) } static void -printstrbufarg(struct tcb *tcp, int arg, int getting) +printstrbufarg(struct tcb *tcp, long arg, int getting) { struct strbuf buf; -- 2.40.0