aboutsummaryrefslogtreecommitdiff
path: root/src/betab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/betab.c')
-rw-r--r--src/betab.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/betab.c b/src/betab.c
index b583958..49e02f7 100644
--- a/src/betab.c
+++ b/src/betab.c
@@ -56,13 +56,19 @@ create_entry(netsnmp_tdata *table_data, long idx,
return entry;
}
#define VSC_POINT_TYPE(p) ((p)->section->fantom->type)
#define VSC_POINT_IDENT(p) ((p)->section->fantom->ident)
#define VSC_POINT_NAME(p) ((p)->desc->name)
-#define VSC_POINT_FMT(p) ((p)->desc->fmt)
+#if VARNISHAPI_MINOR == 0
+# define VSC_POINT_FMT(p) ((p)->desc->fmt)
+#elif VARNISHAPI_MINOR == 1
+# define VSC_POINT_FMT(p) ((p)->desc->ctype)
+#else
+# error "unsupported Varnish API minor number"
+#endif
struct betab_priv {
int err;
long idx;
struct backendTable_entry ent;
netsnmp_tdata *table;

Return to:

Send suggestions and report system problems to the System administrator.