aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vmod_dbrw.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vmod_dbrw.c b/src/vmod_dbrw.c
index 3509d04..f6b6446 100644
--- a/src/vmod_dbrw.c
+++ b/src/vmod_dbrw.c
@@ -1,8 +1,8 @@
/* This file is part of vmod-dbrw
- Copyright (C) 2013-2020 Sergey Poznyakoff
+ Copyright (C) 2013-2022 Sergey Poznyakoff
Vmod-dbrw is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
@@ -377,12 +377,16 @@ expand_backref(VRT_CTX, const char *str, const char *val,
return b;
}
#define ISEMPTY(s) ((s) == NULL || (s)[0] == 0)
+#if VARNISHAPI_MAJOR > 6
+# define vrt_magic_string_end 0
+#endif
+
static void
dbrw_sethdr(VRT_CTX, int where, const char *what, const char *value)
{
struct gethdr_s s = { where, what };
VRT_SetHdr(ctx, &s, value, vrt_magic_string_end);
}

Return to:

Send suggestions and report system problems to the System administrator.