From 869e2231bbc93b5f3b7425d7214392b167d8b962 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20H=C3=A4rdeman?= Date: Sat, 25 Oct 2025 00:19:09 +0200 Subject: [PATCH] config: drop iface_attr_info MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit BLOBMSG_TYPE_STRING is the default type for BLOBMSG_TYPE_ARRAY, so this doesn't add anything. Signed-off-by: David Härdeman Link: https://github.com/openwrt/odhcpd/pull/294 Signed-off-by: Álvaro Fernández Rojas --- src/config.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/config.c b/src/config.c index 6917f9a..070aeaa 100644 --- a/src/config.c +++ b/src/config.c @@ -194,16 +194,9 @@ static const struct blobmsg_policy iface_attrs[IFACE_ATTR_MAX] = { [IFACE_ATTR_NTP] = { .name = "ntp", .type = BLOBMSG_TYPE_ARRAY }, }; -static const struct uci_blob_param_info iface_attr_info[IFACE_ATTR_MAX] = { - [IFACE_ATTR_UPSTREAM] = { .type = BLOBMSG_TYPE_STRING }, - [IFACE_ATTR_DNS] = { .type = BLOBMSG_TYPE_STRING }, - [IFACE_ATTR_DOMAIN] = { .type = BLOBMSG_TYPE_STRING }, -}; - const struct uci_blob_param_list interface_attr_list = { .n_params = IFACE_ATTR_MAX, .params = iface_attrs, - .info = iface_attr_info, }; const struct blobmsg_policy lease_cfg_attrs[LEASE_CFG_ATTR_MAX] = { -- 2.30.2