{
uint64_t val;
const user_config_t *conf;
- const char *class;
const char *name;
if (pt == NULL)
strcpy(namebuff, c + 1);
name = namebuff;
- (void)class;
-
#elif HAVE_VARNISH_V4
+ const char *class;
+
class = pt->section->fantom->type;
name = pt->desc->name;
return 0;
#elif HAVE_VARNISH_V3
+ const char *class;
+
class = pt->class;
name = pt->name;
#endif
#if HAVE_VARNISH_V3 || HAVE_VARNISH_V4
if (!ok) {
- VSM_Destroy(&vd);
+ VSM_Delete(vd);
ERROR("varnish plugin: Unable to open connection.");
return -1;
}
#endif
#if HAVE_VARNISH_V3 || HAVE_VARNISH_V4
if (!stats) {
- VSM_Destroy(&vd);
+ VSM_Delete(vd);
ERROR("varnish plugin: Unable to get statistics.");
return -1;
}