summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/lib/isc/unix/time.c
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2020-01-20 18:44:50 +0000
committerflorian <florian@openbsd.org>2020-01-20 18:44:50 +0000
commit03bbead180ece17d255c00d41b1bb6e3b6864067 (patch)
treec8b449f9c321bdf25f56d2f73554fb44d93ddf92 /usr.sbin/bind/lib/isc/unix/time.c
parentWe are not using json, xml nor httpd. (diff)
downloadwireguard-openbsd-03bbead180ece17d255c00d41b1bb6e3b6864067.tar.xz
wireguard-openbsd-03bbead180ece17d255c00d41b1bb6e3b6864067.zip
Remove unused tm.c
OK millert
Diffstat (limited to 'usr.sbin/bind/lib/isc/unix/time.c')
-rw-r--r--usr.sbin/bind/lib/isc/unix/time.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/usr.sbin/bind/lib/isc/unix/time.c b/usr.sbin/bind/lib/isc/unix/time.c
index d741d6eeb52..2ebdcc450f2 100644
--- a/usr.sbin/bind/lib/isc/unix/time.c
+++ b/usr.sbin/bind/lib/isc/unix/time.c
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: time.c,v 1.9 2020/01/09 18:17:19 florian Exp $ */
+/* $Id: time.c,v 1.10 2020/01/20 18:44:50 florian Exp $ */
/*! \file */
@@ -34,7 +34,7 @@
#include <isc/strerror.h>
#include <isc/string.h>
#include <isc/time.h>
-#include <isc/tm.h>
+
#include <isc/util.h>
#define NS_PER_S 1000000000 /*%< Nanoseconds per second. */
@@ -419,25 +419,6 @@ isc_time_formathttptimestamp(const isc_time_t *t, char *buf, unsigned int len) {
INSIST(flen < len);
}
-isc_result_t
-isc_time_parsehttptimestamp(char *buf, isc_time_t *t) {
- struct tm t_tm;
- time_t when;
- char *p;
-
- REQUIRE(buf != NULL);
- REQUIRE(t != NULL);
-
- p = isc_tm_strptime(buf, "%a, %d %b %Y %H:%M:%S", &t_tm);
- if (p == NULL)
- return (ISC_R_UNEXPECTED);
- when = isc_tm_timegm(&t_tm);
- if (when == -1)
- return (ISC_R_UNEXPECTED);
- isc_time_set(t, when, 0);
- return (ISC_R_SUCCESS);
-}
-
void
isc_time_formatISO8601(const isc_time_t *t, char *buf, unsigned int len) {
time_t now;