summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-03-05 16:17:46 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-03-05 16:17:46 +0100
commite7db46503d07b306056ec70a4290b022e473734b (patch)
treea6b9a9f0b880f45bfc1417404fa8d27fc412d943
parent38cfe7c92328e940c71074c9b579b5bf9f2cb2f6 (diff)
downloadstrace-e7db46503d07b306056ec70a4290b022e473734b.tar.gz
strace-e7db46503d07b306056ec70a4290b022e473734b.tar.bz2
strace-e7db46503d07b306056ec70a4290b022e473734b.tar.xz
Fix printstrbufarg's address argument to be long, not int
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--linux/syscall.h10
-rw-r--r--stream.c2
2 files changed, 3 insertions, 9 deletions
diff --git a/linux/syscall.h b/linux/syscall.h
index 39c0ff2..090b54c 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 8656fc0..dc84ab5 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;