int need_cap_net_raw = 0;
int need_cap_net_bind_service = 0;
int have_cap_chown = 0;
+# ifdef HAVE_DHCP
char *bound_device = NULL;
int did_bind = 0;
+# endif
struct server *serv;
char *netlink_warn;
#else
int bind_fallback = 0;
#endif
-#if defined(HAVE_DHCP) || defined(HAVE_DHCP6)
+#if defined(HAVE_DHCP)
struct dhcp_context *context;
struct dhcp_relay *relay;
#endif
int tftp_prefix_missing = 0;
#endif
+ (void)netlink_warn;
+
#if defined(HAVE_IDN) || defined(HAVE_LIBIDN2) || defined(LOCALEDIR)
setlocale(LC_ALL, "");
#endif
int hit = 0;
struct dyndir *dd;
+ (void)now;
+
while (1)
{
int rc;
struct serverfd *sfd, *tmp, **up;
int port = 0, count;
int locals = 0;
+
+ (void)no_loop_check;
#ifdef HAVE_LOOP
if (!no_loop_check)
/* Called when addresses are added or deleted from an interface */
void newaddress(time_t now)
{
+#ifdef HAVE_DHCP
struct dhcp_relay *relay;
-
+#endif
+
(void)now;
if (option_bool(OPT_CLEVERBIND) || option_bool(OPT_LOCAL_SERVICE) ||
size_t num_patterns = 0;
struct blob_attr *tb[policy_len];
struct blob_attr *attr;
+
+ (void)ctx;
+ (void)obj;
+ (void)req;
+ (void)method;
if (blobmsg_parse(policy, policy_len, tb, blob_data(msg), blob_len(msg)))
return UBUS_STATUS_INVALID_ARGUMENT;