Commit b3d6addc authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make TIM_parse() return double like all other TIM_ functions.

Eliminate libvarnish.h embedded #includes.
parent 6e6edd08
......@@ -58,6 +58,8 @@
#ifndef CLOCK_MONOTONIC
#define CLOCK_MONOTONIC 0
#include <sys/time.h>
static int
clock_gettime(int foo, struct timespec *ts)
{
......
......@@ -36,6 +36,7 @@
#include <stdio.h>
#include <syslog.h>
#include <strin.h>
#ifdef HAVE_PRIV_H
#include <priv.h>
......
......@@ -69,6 +69,7 @@
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <time.h>
#include "compat/daemon.h"
......
......@@ -28,10 +28,7 @@
*
*/
#include <errno.h>
#include <time.h>
#include <stdint.h>
#include <sys/types.h>
#include "vas.h"
......@@ -88,7 +85,7 @@ void VTCP_set_read_timeout(int s, double seconds);
/* from libvarnish/time.c */
#define TIM_FORMAT_SIZE 30
void TIM_format(double t, char *p);
time_t TIM_parse(const char *p);
double TIM_parse(const char *p);
double TIM_mono(void);
double TIM_real(void);
void TIM_sleep(double t);
......
......@@ -36,6 +36,7 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include "vqueue.h"
......
......@@ -116,10 +116,10 @@ static const char *fmts[] = {
NULL
};
time_t
double
TIM_parse(const char *p)
{
time_t t;
double t;
struct tm tm;
const char **r;
......
......@@ -27,6 +27,7 @@
*/
#include <pthread.h>
#include <unistd.h>
#include "libvarnish.h"
#include "vmb.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment