Remove unnecessary adjtimex calls

This commit is contained in:
Miroslav Lichvar
2013-06-06 19:38:36 +02:00
parent 62027f1b47
commit 8aa9eb19c8
6 changed files with 32 additions and 7 deletions

12
util.c
View File

@@ -188,6 +188,18 @@ UTI_AverageDiffTimevals (struct timeval *earlier,
/* ================================================== */
void
UTI_AddDiffToTimeval(struct timeval *a, struct timeval *b,
struct timeval *c, struct timeval *result)
{
double diff;
UTI_DiffTimevalsToDouble(&diff, a, b);
UTI_AddDoubleToTimeval(c, diff, result);
}
/* ================================================== */
#define POOL_ENTRIES 16
#define BUFFER_LENGTH 64
static char buffer_pool[POOL_ENTRIES][BUFFER_LENGTH];