Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
b3d6addc
Commit
b3d6addc
authored
Oct 09, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make TIM_parse() return double like all other TIM_ functions.
Eliminate libvarnish.h embedded #includes.
parent
6e6edd08
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
6 deletions
+9
-6
cache_pool.c
bin/varnishd/cache_pool.c
+2
-0
mgt_sandbox_solaris.c
bin/varnishd/mgt_sandbox_solaris.c
+1
-0
varnishncsa.c
bin/varnishncsa/varnishncsa.c
+1
-0
libvarnish.h
include/libvarnish.h
+1
-4
cli_serve.c
lib/libvarnish/cli_serve.c
+1
-0
time.c
lib/libvarnish/time.c
+2
-2
vmb.c
lib/libvarnish/vmb.c
+1
-0
No files found.
bin/varnishd/cache_pool.c
View file @
b3d6addc
...
@@ -58,6 +58,8 @@
...
@@ -58,6 +58,8 @@
#ifndef CLOCK_MONOTONIC
#ifndef CLOCK_MONOTONIC
#define CLOCK_MONOTONIC 0
#define CLOCK_MONOTONIC 0
#include <sys/time.h>
static
int
static
int
clock_gettime
(
int
foo
,
struct
timespec
*
ts
)
clock_gettime
(
int
foo
,
struct
timespec
*
ts
)
{
{
...
...
bin/varnishd/mgt_sandbox_solaris.c
View file @
b3d6addc
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#include <stdio.h>
#include <stdio.h>
#include <syslog.h>
#include <syslog.h>
#include <strin.h>
#ifdef HAVE_PRIV_H
#ifdef HAVE_PRIV_H
#include <priv.h>
#include <priv.h>
...
...
bin/varnishncsa/varnishncsa.c
View file @
b3d6addc
...
@@ -69,6 +69,7 @@
...
@@ -69,6 +69,7 @@
#include <string.h>
#include <string.h>
#include <strings.h>
#include <strings.h>
#include <unistd.h>
#include <unistd.h>
#include <time.h>
#include "compat/daemon.h"
#include "compat/daemon.h"
...
...
include/libvarnish.h
View file @
b3d6addc
...
@@ -28,10 +28,7 @@
...
@@ -28,10 +28,7 @@
*
*
*/
*/
#include <errno.h>
#include <time.h>
#include <stdint.h>
#include <stdint.h>
#include <sys/types.h>
#include "vas.h"
#include "vas.h"
...
@@ -88,7 +85,7 @@ void VTCP_set_read_timeout(int s, double seconds);
...
@@ -88,7 +85,7 @@ void VTCP_set_read_timeout(int s, double seconds);
/* from libvarnish/time.c */
/* from libvarnish/time.c */
#define TIM_FORMAT_SIZE 30
#define TIM_FORMAT_SIZE 30
void
TIM_format
(
double
t
,
char
*
p
);
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_mono
(
void
);
double
TIM_real
(
void
);
double
TIM_real
(
void
);
void
TIM_sleep
(
double
t
);
void
TIM_sleep
(
double
t
);
...
...
lib/libvarnish/cli_serve.c
View file @
b3d6addc
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <unistd.h>
#include "vqueue.h"
#include "vqueue.h"
...
...
lib/libvarnish/time.c
View file @
b3d6addc
...
@@ -116,10 +116,10 @@ static const char *fmts[] = {
...
@@ -116,10 +116,10 @@ static const char *fmts[] = {
NULL
NULL
};
};
time_t
double
TIM_parse
(
const
char
*
p
)
TIM_parse
(
const
char
*
p
)
{
{
time_t
t
;
double
t
;
struct
tm
tm
;
struct
tm
tm
;
const
char
**
r
;
const
char
**
r
;
...
...
lib/libvarnish/vmb.c
View file @
b3d6addc
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
*/
*/
#include <pthread.h>
#include <pthread.h>
#include <unistd.h>
#include "libvarnish.h"
#include "libvarnish.h"
#include "vmb.h"
#include "vmb.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment