[master] d5e7a11 Cosmetic
Federico G. Schwindt
fgsch at lodoss.net
Fri Oct 10 02:11:57 CEST 2014
commit d5e7a116c690d9bd6a8a9fd4ed0dc8c738bcfe74
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Fri Oct 10 01:09:54 2014 +0100
Cosmetic
diff --git a/lib/libvmod_std/vmod_std.c b/lib/libvmod_std/vmod_std.c
index 4bba4b7..792f04b 100644
--- a/lib/libvmod_std/vmod_std.c
+++ b/lib/libvmod_std/vmod_std.c
@@ -235,18 +235,19 @@ VCL_VOID __match_proto__(td_std_cache_req_body)
vmod_cache_req_body(VRT_CTX, VCL_BYTES size)
{
int result;
+
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
result = VRT_CacheReqBody(ctx, size);
- VSLb(ctx->vsl, SLT_Debug,"VRT_CacheReqBody(%zu): %d", (size_t)size, result);
+ VSLb(ctx->vsl, SLT_Debug,"VRT_CacheReqBody(%zu): %d",
+ (size_t)size, result);
}
VCL_STRING __match_proto__(td_std_strstr)
-vmod_strstr(VRT_CTX, VCL_STRING mstr, VCL_STRING msubstr)
+vmod_strstr(VRT_CTX, VCL_STRING s1, VCL_STRING s2)
{
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
-
- if ((mstr == NULL) || (msubstr == NULL))
+ if (s1 == NULL || s2 == NULL)
return (NULL);
- return(strstr(mstr, msubstr));
+ return (strstr(s1, s2));
}
More information about the varnish-commit
mailing list