+/* Copyright (c) 2015. The SimGrid Team.
+ * All rights reserved. */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
#include <sys/types.h>
#include <sys/uio.h>
{
if (write)
return - UNW_EINVAL;
- ssize_t s;
pid_t pid = _UPT_getpid(arg);
size_t size = sizeof(unw_word_t);
struct iovec local = { valp, size };
struct iovec remote = { (void*) addr, size };
- s = process_vm_readv(pid, &local, 1, &remote, 1, 0);
+ ssize_t s = process_vm_readv(pid, &local, 1, &remote, 1, 0);
if (s >= 0) {
if ((size_t) s != size)
return - UNW_EINVAL;