From fc7a76da83a188e9d3d49b8b37713c77f268f7d9 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 27 Sep 2015 18:54:47 -0700 Subject: [PATCH] Standardize _syscall as exactly one function call. --- ldid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ldid.cpp b/ldid.cpp index 8c03ef6..e320f12 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -842,7 +842,7 @@ class File { void open(const char *path, int flags) { _assert(file_ == -1); - _syscall(file_ = ::open(path, flags)); + file_ = _syscall(::open(path, flags)); } int file() const { @@ -901,7 +901,7 @@ class Map { _syscall(fstat(file, &stat)); size_ = stat.st_size; - _syscall(data_ = mmap(NULL, size_, pflag, mflag, file, 0)); + data_ = _syscall(mmap(NULL, size_, pflag, mflag, file, 0)); } void open(const char *path, bool edit) { -- 2.45.2