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;
#include "shmlog.h"
#include "vrt.h"
-#include "vrt_obj.h"
#include "sbuf.h"
#include "vcl.h"
#include "cache.h"
int
VRT_re_test(struct sbuf *sb, const char *re)
{
- int i, j;
+ int i;
regex_t t;
char buf[BUFSIZ];
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);