Commit e38f7026 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

No need to copy the VCL_conf struct anymore, it can be const.

parent 97be2458
......@@ -49,7 +49,7 @@ struct vcl {
#define VCL_MAGIC 0x214188f2
VTAILQ_ENTRY(vcl) list;
void *dlh;
struct VCL_conf conf[1];
const struct VCL_conf *conf;
char state[8];
char *loaded_name;
unsigned busy;
......@@ -205,7 +205,7 @@ VCL_Open(const char *fn, struct vsb *msg)
ALLOC_OBJ(vcl, VCL_MAGIC);
AN(vcl);
vcl->dlh = dlh;
memcpy(vcl->conf, cnf, sizeof *cnf);
vcl->conf = cnf;
return (vcl);
}
......
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