]> git.ipfire.org Git - thirdparty/chrony.git/commit
privops: refactor initialisation/finalisation
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 8 Dec 2015 13:10:29 +0000 (14:10 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 8 Dec 2015 17:02:05 +0000 (18:02 +0100)
commit610f234043f936bbb54659327c8c303108dbf4ff
treefb34ef520cbdd598c9fd3437a2a8f6e3827e03c4
parentaa9a4c697ce0b8789a2d24af08a5aa95f487db23
privops: refactor initialisation/finalisation

Rename PRV_Initialise() to PRV_StartHelper() and add a new
initialisation function, which just sets the helper fd to -1. Move
the initialision/finalisation calls from the system drivers to main.c.
If privops is not included in the build, define empty macros for the
function names, so their calls don't have to be wrapped in #ifdefs.
main.c
privops.c
privops.h
sys_macosx.c