From c4f12f59cc907577d787f816b37122809f896bb2 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 12 May 2008 14:35:56 +0000 Subject: -Wall fixes by Cristian Ionescu-Idbohrn. No object code changes. --- networking/udhcp/files.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'networking/udhcp/files.c') diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c index e0e8b12c3..b13367df7 100644 --- a/networking/udhcp/files.c +++ b/networking/udhcp/files.c @@ -93,7 +93,7 @@ static void attach_option(struct option_set **opt_list, #if ENABLE_FEATURE_RFC3397 if ((option->flags & TYPE_MASK) == OPTION_STR1035) /* reuse buffer and length for RFC1035-formatted string */ - buffer = dname_enc(NULL, 0, buffer, &length); + buffer = (char *)dname_enc(NULL, 0, buffer, &length); #endif /* make a new option */ @@ -122,7 +122,7 @@ static void attach_option(struct option_set **opt_list, #if ENABLE_FEATURE_RFC3397 if ((option->flags & TYPE_MASK) == OPTION_STR1035) /* reuse buffer and length for RFC1035-formatted string */ - buffer = dname_enc(existing->data + 2, + buffer = (char *)dname_enc(existing->data + 2, existing->data[OPT_LEN], buffer, &length); #endif if (existing->data[OPT_LEN] + length <= 255) { -- cgit v1.2.3-55-g6feb