summaryrefslogtreecommitdiff
path: root/src/clock/s6-clockview.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/clock/s6-clockview.c')
-rw-r--r--src/clock/s6-clockview.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/clock/s6-clockview.c b/src/clock/s6-clockview.c
index 9b18175..e0ae08b 100644
--- a/src/clock/s6-clockview.c
+++ b/src/clock/s6-clockview.c
@@ -1,5 +1,7 @@
/* ISC license. */
+#include <errno.h>
+
#include <skalibs/allreadwrite.h>
#include <skalibs/buffer.h>
#include <skalibs/strerr2.h>
@@ -14,6 +16,7 @@ int main (void)
char fmt[LOCALTMN_FMT] ;
PROG = "s6-clockview" ;
+ errno = EPIPE ;
if (allread(0, buf, TAIN_PACK) < TAIN_PACK) strerr_diefu1sys(111, "read from stdin") ;
tain_unpack(buf, &adj) ;
if (!sysclock_get(&now)) strerr_diefu1sys(111, "sysclock_get") ;