-/* $OpenBSD: extern.h,v 1.92 2021/11/04 14:21:19 claudio Exp $ */
+/* $OpenBSD: extern.h,v 1.93 2021/11/04 14:24:41 claudio Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
void logx(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
+time_t getmonotime(void);
int mkpath(const char *);
-/* $OpenBSD: http.c,v 1.47 2021/11/03 13:29:28 claudio Exp $ */
+/* $OpenBSD: http.c,v 1.48 2021/11/04 14:24:41 claudio Exp $ */
/*
* Copyright (c) 2020 Nils Fisher <nils_fisher@hotmail.com>
* Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org>
static enum res proxy_write(struct http_connection *);
static enum res data_write(struct http_connection *);
-static time_t
-getmonotime(void)
-{
- struct timespec ts;
-
- if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0)
- err(1, "clock_gettime");
- return (ts.tv_sec);
-}
-
/*
* Return a string that can be used in error message to identify the
* connection.
-/* $OpenBSD: main.c,v 1.161 2021/11/04 11:32:55 claudio Exp $ */
+/* $OpenBSD: main.c,v 1.162 2021/11/04 14:24:41 claudio Exp $ */
/*
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
}
}
+time_t
+getmonotime(void)
+{
+ struct timespec ts;
+
+ if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0)
+ err(1, "clock_gettime");
+ return (ts.tv_sec);
+}
+
void
entity_free(struct entity *ent)
{