]> granicus.if.org Git - strace/commit
Refactor tamper_with_syscall_exiting()
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 5 Dec 2018 16:10:05 +0000 (16:10 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 5 Dec 2018 16:10:05 +0000 (16:10 +0000)
commit217eccfba5224fc47be2bd7b5b8b9b28b4fedf98
treecc2dea56279ed36ca01c7cbb8139325dca51d4fd
parent51d89ef0a02e20b0708fe06abde5b9756fe7fb95
Refactor tamper_with_syscall_exiting()

Move the code than deals with updating the return and error values
to separate functions.

* syscall.c (set_error, set_success): New functions.
(tamper_with_syscall_exiting): Use them.
syscall.c