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
@@ -61,3 +61,9 @@ create_entry(netsnmp_tdata *table_data, long idx,
#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

Return to:

Send suggestions and report system problems to the System administrator.