]> granicus.if.org Git - strace/commit
Move kill_save_errno to a separate header file
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 21 Nov 2018 01:44:16 +0000 (01:44 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 21 Nov 2018 17:32:51 +0000 (17:32 +0000)
commiteca7e9588607797db52b9f1d935397c5dba46366
tree71bf677527a2ff945e012a90d650d0630769c595
parent422ecbe6759bd726e34914616dc2e1a1da78418a
Move kill_save_errno to a separate header file

This function is going to be used outside strace.c,
so make it globally available and move it to a separate header file.

* strace.c (kill_save_errno): Add "inline" keyword, change return type
from "void" to "int", move the function ...
* kill_save_errno.h: ... to this new file.
* Makefile.am (strace_SOURCES): Add it.
Makefile.am
kill_save_errno.h [new file with mode: 0644]
strace.c