Commit 1c8c68f4 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Minor cleanups



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5177 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 65812446
...@@ -76,12 +76,8 @@ vcc_ParseImport(struct vcc *tl) ...@@ -76,12 +76,8 @@ vcc_ParseImport(struct vcc *tl)
Fi(tl, 0, "\t &Vmod_Func_%.*s,\n", PF(mod)); Fi(tl, 0, "\t &Vmod_Func_%.*s,\n", PF(mod));
Fi(tl, 0, "\t sizeof(Vmod_Func_%.*s),\n", PF(mod)); Fi(tl, 0, "\t sizeof(Vmod_Func_%.*s),\n", PF(mod));
Fi(tl, 0, "\t \"%.*s\",\n", PF(mod)); Fi(tl, 0, "\t \"%.*s\",\n", PF(mod));
if (fn != NULL) { Fi(tl, 0, "\t ");
Fi(tl, 0, "\t "); EncString(tl->fi, fn, NULL, 0);
EncString(tl->fi, fn, NULL, 0);
} else {
Fi(tl, 0, "\t 0");
}
Fi(tl, 0, ");\n"); Fi(tl, 0, ");\n");
/* XXX: zero the function pointer structure */ /* XXX: zero the function pointer structure */
...@@ -113,14 +109,14 @@ vcc_ParseImport(struct vcc *tl) ...@@ -113,14 +109,14 @@ vcc_ParseImport(struct vcc *tl)
} }
proto = dlsym(hdl, "Vmod_Proto"); proto = dlsym(hdl, "Vmod_Proto");
if (modname == NULL) { if (proto == NULL) {
vsb_printf(tl->sb, "Could not load module %.*s\n\t%s\n\t%s\n", vsb_printf(tl->sb, "Could not load module %.*s\n\t%s\n\t%s\n",
PF(mod), fn, "Symbol Vmod_Proto not found"); PF(mod), fn, "Symbol Vmod_Proto not found");
vcc_ErrWhere(tl, mod); vcc_ErrWhere(tl, mod);
return; return;
} }
spec = dlsym(hdl, "Vmod_Spec"); spec = dlsym(hdl, "Vmod_Spec");
if (modname == NULL) { if (spec == NULL) {
vsb_printf(tl->sb, "Could not load module %.*s\n\t%s\n\t%s\n", vsb_printf(tl->sb, "Could not load module %.*s\n\t%s\n\t%s\n",
PF(mod), fn, "Symbol Vmod_Spec not found"); PF(mod), fn, "Symbol Vmod_Spec not found");
vcc_ErrWhere(tl, mod); vcc_ErrWhere(tl, mod);
......
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