artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e189bd
)
Add getmonotime() to test-http.c so that the test compiles again.
author
claudio
<claudio@openbsd.org>
Fri, 5 Nov 2021 08:20:36 +0000
(08:20 +0000)
committer
claudio
<claudio@openbsd.org>
Fri, 5 Nov 2021 08:20:36 +0000
(08:20 +0000)
Noticed as ususal by anton@
regress/usr.sbin/rpki-client/test-http.c
patch
|
blob
|
history
diff --git
a/regress/usr.sbin/rpki-client/test-http.c
b/regress/usr.sbin/rpki-client/test-http.c
index
827edb7
..
e1482a3
100644
(file)
--- 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)
{