zhaojh329 / libuhttpd

A very flexible, lightweight and high performance HTTP server library based on libev and http-parser for Embedded Linux.
MIT License
386 stars 67 forks source link

src/uhttpd.c: fix build without dlopen #15

Closed ffontaine closed 3 years ago

ffontaine commented 3 years ago

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:

Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com