diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2018-09-03 13:46:28 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2018-09-03 13:48:14 +0200 |
commit | 3e17fd926ff0f8feae97ff7c86dd5ce282315490 (patch) | |
tree | 7e3ce0567821f885924b3a999a4be751bbca93c8 | |
parent | 44cce3169a961727b1f046b786e7995ffb26a957 (diff) |
config: fix odhcpd_attrs array size
Use ODHCPD_ATTR_MAX as array size of odhcpd_attrs
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r-- | src/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index 118349a..6556eac 100644 --- a/src/config.c +++ b/src/config.c @@ -153,7 +153,7 @@ enum { ODHCPD_ATTR_MAX }; -static const struct blobmsg_policy odhcpd_attrs[LEASE_ATTR_MAX] = { +static const struct blobmsg_policy odhcpd_attrs[ODHCPD_ATTR_MAX] = { [ODHCPD_ATTR_LEGACY] = { .name = "legacy", .type = BLOBMSG_TYPE_BOOL }, [ODHCPD_ATTR_MAINDHCP] = { .name = "maindhcp", .type = BLOBMSG_TYPE_BOOL }, [ODHCPD_ATTR_LEASEFILE] = { .name = "leasefile", .type = BLOBMSG_TYPE_STRING }, |