From 9762bc8a64d139a0c572e0471a353f906755ea4b Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 20 Mar 2012 09:36:56 +1300 Subject: [PATCH] process_vm_readv.2: Minor tweaks to example code Signed-off-by: Michael Kerrisk --- man2/process_vm_readv.2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/man2/process_vm_readv.2 b/man2/process_vm_readv.2 index a4aa19a28..576e797f6 100644 --- a/man2/process_vm_readv.2 +++ b/man2/process_vm_readv.2 @@ -241,7 +241,8 @@ and the second 10 bytes into .nf #include -int main() +int +main(void) { struct iovec local[2]; struct iovec remote[1]; @@ -254,7 +255,7 @@ int main() local[0].iov_len = 10; local[1].iov_base = buf2; local[1].iov_len = 10; - remote[0].iov_base = (void *)0x10000; + remote[0].iov_base = (void *) 0x10000; remote[1].iov_len = 20; nread = process_vm_readv(pid, local, 2, remote, 1, 0);