Commit 0a341b84 authored by Geoff Simmons's avatar Geoff Simmons

fix some bugs uncovered by compiling with clang

parent 677fdf53
......@@ -38,6 +38,8 @@
#include "vmod_blobcode.h"
#include "wb.h"
#define MAX_VCL_ERRMSG 64
struct vmod_blobcode_blob {
unsigned magic;
#define VMOD_BLOBCODE_BLOB_MAGIC 0xfade4fa9
......@@ -67,7 +69,7 @@ struct vmod_blobcode_blob {
#define ILLEGAL(ctx, m) \
ERR((ctx), m " is illegal in vcl_init() and vcl_fini().")
static const struct vmod_priv const null_blob[1] =
static const struct vmod_priv null_blob[1] =
{
{
.priv = "",
......@@ -157,8 +159,8 @@ errmsg(VRT_CTX, const char *fmt, ...)
else if (ctx->vsl)
VSLbv(ctx->vsl, SLT_VCL_Error, fmt, args);
else
/* An error message in vcl_fini() cannot be formatted */
VSL(SLT_VCL_Error, 0, fmt);
/* Should this ever happen in vcl_fini() ... */
VSL(SLT_VCL_Error, 0, fmt, args);
va_end(args);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment