X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuhttpd.git;a=blobdiff_plain;f=lua.c;h=213490483e469f9c929b507db0afc9e0c8b5cf4a;hp=aa27ec0837f40e2e9c714acdb02fb51562000fb8;hb=b9178b9357798ae23a5724333cc6572d14f23958;hpb=aec143997b9aba65f7ea702d7cd42b553afe335f diff --git a/lua.c b/lua.c index aa27ec0..2134904 100644 --- a/lua.c +++ b/lua.c @@ -255,7 +255,7 @@ static void lua_main(struct client *cl, struct path_info *pi, char *url) printf("Status: 500 Internal Server Error\r\n\r\n" "Unable to launch the requested Lua program:\n" - " %s: %s\n", pi->phys, strerror(errno)); + " %s: %s\n", pi->phys, error); } exit(0); @@ -295,6 +295,6 @@ static int lua_plugin_init(const struct uhttpd_ops *o, struct config *c) return 0; } -const struct uhttpd_plugin uhttpd_plugin = { +struct uhttpd_plugin uhttpd_plugin = { .init = lua_plugin_init, };