coova / coova-chilli

CoovaChilli is an open-source software access controller for captive portal hotspots.
Other
516 stars 258 forks source link

Fix build with ENABLE_SESSGARDEN but not HAVE_PATRICIA #417

Closed xOneca closed 6 years ago

xOneca commented 6 years ago

Fix following error at build time:

garden.c: In function ‘garden_print_appconn’: garden.c:77:5: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] if (!safe_write(fd, line, strlen(line))) / error /; ^~ garden.c:83:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ garden_print_list(fd, ^~~~~

Fixes #413