Skip to content

Commit

Permalink
src/uhttpd.c: fix build without dlopen
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ffontaine committed Jan 18, 2021
1 parent 2f12b7d commit 117ae81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uhttpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 117ae81

Please sign in to comment.