From 3f5285b7cea1768ad602711a473a3025b8e62b8e Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Fri, 26 Oct 2018 13:07:19 -0400 Subject: [PATCH] options.c: Remove an unnecessary cast. --- src/options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/options.c b/src/options.c index f3eb612..c6d9706 100644 --- a/src/options.c +++ b/src/options.c @@ -234,12 +234,12 @@ size_t add_u32_option(struct dhcpmsg *packet, uint8_t code, uint32_t data) // Add a parameter request list for stubborn DHCP servers size_t add_option_request_list(struct dhcpmsg *packet) { - static const uint8_t reqdata[] = { + static const char reqdata[] = { DCODE_SUBNET, DCODE_ROUTER, DCODE_DNS, DCODE_HOSTNAME, DCODE_DOMAIN, DCODE_BROADCAST, }; return add_option_string(packet, DCODE_PARAM_REQ, - (char *)reqdata, sizeof reqdata); + reqdata, sizeof reqdata); } #ifdef NDHS_BUILD