Commit 37b049eb authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Flinting.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@589 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 6353c700
......@@ -136,7 +136,8 @@ VRT_l_obj_ttl(struct sess *sp, double a)
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC); /* XXX */
VSL(SLT_TTL, sp->fd, "%u VCL %.0f %u", sp->obj->xid, a, sp->t_req);
VSL(SLT_TTL, sp->fd, "%u VCL %.0f %u",
sp->obj->xid, a, sp->t_req.tv_sec);
if (a < 0)
a = 0;
sp->obj->ttl = sp->t_req.tv_sec + (int)a;
......
......@@ -13,7 +13,6 @@
#include "shmlog.h"
#include "vrt.h"
#include "vrt_obj.h"
#include "vcl.h"
#include "cache.h"
#include <sys/types.h>
......
......@@ -12,7 +12,6 @@
#include "shmlog.h"
#include "vrt.h"
#include "vrt_obj.h"
#include "sbuf.h"
#include "vcl.h"
#include "cache.h"
......@@ -55,7 +54,7 @@ VRT_re_match(const char *s, void *re)
int
VRT_re_test(struct sbuf *sb, const char *re)
{
int i, j;
int i;
regex_t t;
char buf[BUFSIZ];
......@@ -65,7 +64,7 @@ VRT_re_test(struct sbuf *sb, const char *re)
regfree(&t);
return (0);
}
j = regerror(i, &t, buf, sizeof buf);
(void)regerror(i, &t, buf, sizeof buf);
sbuf_printf(sb, "Regexp compilation error:\n\n%s\n\n", buf);
regfree(&t);
return (1);
......
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