From: claudio Date: Fri, 5 Nov 2021 08:20:36 +0000 (+0000) Subject: Add getmonotime() to test-http.c so that the test compiles again. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bfaf3eaabd974e3d259cb27dbc4cd0b0ec02ce78;p=openbsd Add getmonotime() to test-http.c so that the test compiles again. Noticed as ususal by anton@ --- diff --git a/regress/usr.sbin/rpki-client/test-http.c b/regress/usr.sbin/rpki-client/test-http.c index 827edb70898..e1482a3ba59 100644 --- a/regress/usr.sbin/rpki-client/test-http.c +++ b/regress/usr.sbin/rpki-client/test-http.c @@ -25,6 +25,16 @@ logx(const char *fmt, ...) va_end(ap); } +time_t +getmonotime(void) +{ + struct timespec ts; + + if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) + err(1, "clock_gettime"); + return (ts.tv_sec); +} + static void http_request(size_t id, const char *uri, const char *last_mod, int fd) {