name = namebuff;
#elif HAVE_VARNISH_V4
- const char *class;
-
- class = pt->section->fantom->type;
- name = pt->desc->name;
-
- if (strcmp(class, "MAIN") != 0)
+ if (strcmp(pt->section->fantom->type, "MAIN") != 0)
return 0;
+ name = pt->desc->name;
#elif HAVE_VARNISH_V3
- const char *class;
+ if (strcmp(pt->class, "") != 0)
+ return 0;
- class = pt->class;
name = pt->name;
-
- if (strcmp(class, "") != 0)
- return 0;
#endif
val = *(const volatile uint64_t *)pt->ptr;