src/uhttpd.c: fix build without dlopen

Fix the following build failure without dlopen:

/home/buildroot/autobuild/instance-3/output-1/build/libuhttpd-3.8.0/src/uhttpd.c: In function 'uh_load_plugin':
/home/buildroot/autobuild/instance-3/output-1/build/libuhttpd-3.8.0/src/uhttpd.c:155:32: error: unused variable 'srvi' [-Werror=unused-variable]
     struct uh_server_internal *srvi = (struct uh_server_internal *)srv;
                                ^~~~

Fixes:
 - http://autobuild.buildroot.org/results/00e5b5e1da782dcedda48777cbb0a2cba9c98cec

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
main^2
Fabrice Fontaine 2021-01-18 07:33:34 +01:00
parent 2f12b7d434
commit 117ae812a4
1 changed files with 1 additions and 1 deletions

View File

@ -152,8 +152,8 @@ static int uh_server_ssl_init(struct uh_server *srv, const char *cert, const cha
static int uh_load_plugin(struct uh_server *srv, const char *path)
{
struct uh_server_internal *srvi = (struct uh_server_internal *)srv;
#ifdef HAVE_DLOPEN
struct uh_server_internal *srvi = (struct uh_server_internal *)srv;
struct uh_plugin_handler *h;
struct uh_plugin *p;
void *dlh;