skaclient_syncify.c (322B)
1 /* ISC license. */ 2 3 #include <errno.h> 4 5 #include <skalibs/skaclient.h> 6 7 int skaclient_syncify (skaclient *a, tain const *deadline, tain *stamp) 8 { 9 int r ; 10 if (!skaclient_timed_flush(a, deadline, stamp)) return 0 ; 11 r = skaclient_timed_supdate(a, deadline, stamp) ; 12 return r < 0 ? 0 : !r ? (errno = EPIPE, 0) : 1 ; 13 }