diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-11-05 08:20:37 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-11-05 08:20:37 +0000 |
commit | f68f7011041145b0f143c8ea454e76595c4242f3 (patch) | |
tree | 80f0188db0c637050c64cfa0d56e21f6c39d0b52 /regress/usr.sbin | |
parent | 1003eb3d6febdcd9843f672de5540a43e7d2f264 (diff) |
Add getmonotime() to test-http.c so that the test compiles again.
Noticed as ususal by anton@
Diffstat (limited to 'regress/usr.sbin')
-rw-r--r-- | regress/usr.sbin/rpki-client/test-http.c | 10 |
1 files changed, 10 insertions, 0 deletions
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) { |