summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/udhcp/d6_dhcpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c
index 95de74f..3e08798 100644
--- a/networking/udhcp/d6_dhcpc.c
+++ b/networking/udhcp/d6_dhcpc.c
@@ -152,8 +152,8 @@ static char** new_env(void)
/* put all the parameters into the environment */
static void option_to_env(uint8_t *option, uint8_t *option_end)
{
- /* "length minus 4" */
char *dlist, *ptr;
+ /* "length minus 4" */
int len_m4 = option_end - option - 4;
int olen, ooff;
while (len_m4 >= 0) {