From 25435201b417b2c1cfba0ca5bad17c320a53f776 Mon Sep 17 00:00:00 2001 From: Evan Miller Date: Mon, 21 Dec 2020 11:26:45 -0500 Subject: [PATCH] Remove math.h --- src/libmdb/data.c | 3 +-- src/libmdb/write.c | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libmdb/data.c b/src/libmdb/data.c index 73db744..6df5fb2 100644 --- a/src/libmdb/data.c +++ b/src/libmdb/data.c @@ -20,7 +20,6 @@ #define _XOPEN_SOURCE #include -#include #define OFFSET_MASK 0x1fff #define OLE_BUFFER_SIZE (MDB_BIND_SIZE*64) @@ -878,7 +877,7 @@ mdb_date_to_tm(double td, struct tm *t) yr = 1; day = (long)(td); - time = (long)(fabs(td - day) * 86400.0 + 0.5); + time = (long)((td - day) * 86400.0 + 0.5); t->tm_hour = time / 3600; t->tm_min = (time / 60) % 60; t->tm_sec = time % 60; diff --git a/src/libmdb/write.c b/src/libmdb/write.c index 3b8397f..bff0cb2 100644 --- a/src/libmdb/write.c +++ b/src/libmdb/write.c @@ -17,7 +17,6 @@ */ #include -#include #include #include "mdbtools.h"