[master] a81a1d532 vte: Flexelinting
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Tue Aug 22 06:02:07 UTC 2023
commit a81a1d532c2d109f14e170de43586ab0baa80bb9
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Tue Aug 22 08:00:36 2023 +0200
vte: Flexelinting
diff --git a/include/vte.h b/include/vte.h
index 2b57cfb3b..43279bc9a 100644
--- a/include/vte.h
+++ b/include/vte.h
@@ -44,5 +44,5 @@ int VTE_putc(struct vte *, char);
int VTE_cat(struct vte *, const char *);
int VTE_printf(struct vte *, const char *, ...) v_printflike_(2, 3);
int VTE_finish(struct vte *);
-int VTE_format(struct vte *, VTE_format_f *func, void *priv);
+int VTE_format(const struct vte *, VTE_format_f *func, void *priv);
void VTE_destroy(struct vte **);
diff --git a/lib/libvarnish/vte.c b/lib/libvarnish/vte.c
index efccd97ac..44ac71afa 100644
--- a/lib/libvarnish/vte.c
+++ b/lib/libvarnish/vte.c
@@ -227,7 +227,7 @@ VTE_finish(struct vte *vte)
}
sep = (vte->o_sz - vte->l_maxsz) / vte->f_cnt;
- vte->o_sep = vlimit(sep, MINSEP, MAXSEP);
+ vte->o_sep = vlimit_t(int, sep, MINSEP, MAXSEP);
return (0);
}
@@ -238,7 +238,7 @@ VTE_finish(struct vte *vte)
} while (0)
int
-VTE_format(struct vte *vte, VTE_format_f *func, void *priv)
+VTE_format(const struct vte *vte, VTE_format_f *func, void *priv)
{
int fno, fsz, nsp;
const char *p, *q;
More information about the varnish-commit
mailing list