[master] 07d0bc4 Add a couple of 'const' and a missing star
Poul-Henning Kamp
phk at FreeBSD.org
Mon Jun 23 08:58:03 CEST 2014
commit 07d0bc40e4a1d5d3e8754cafa65cf86ecfdb3de2
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Jun 23 06:57:47 2014 +0000
Add a couple of 'const' and a missing star
diff --git a/lib/libvmod_std/vmod_std.c b/lib/libvmod_std/vmod_std.c
index 60852b6..98ed54d 100644
--- a/lib/libvmod_std/vmod_std.c
+++ b/lib/libvmod_std/vmod_std.c
@@ -237,17 +237,17 @@ vmod_timestamp(const struct vrt_ctx *ctx, VCL_STRING label)
((a) == (b) || ((a) == '\0' && (b) == '&') || ((a) == '&' && (b) == '\0'))
static ssize_t
-param_compare(char *s, char *t)
+param_compare(const char *s, const char *t)
{
for (; QS_EQUALS(*s, *t); s++, t++) {
- if (*s == '&' || s == '\0')
+ if (*s == '&' || *s == '\0')
return (0);
}
return (*s - *t);
}
static size_t
-param_copy(char *dst, char *src)
+param_copy(char *dst, const char *src)
{
size_t len;
len = strcspn(src, "&");
More information about the varnish-commit
mailing list