diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-12 14:35:56 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-12 14:35:56 +0000 |
commit | c4f12f59cc907577d787f816b37122809f896bb2 (patch) | |
tree | 78b50dbcee80b14f79ce5d2ef12906ed4a40358a /networking/udhcp/files.c | |
parent | 023dc6798e05373bf33d64221bbe6a7265734c34 (diff) | |
download | busybox-w32-c4f12f59cc907577d787f816b37122809f896bb2.tar.gz busybox-w32-c4f12f59cc907577d787f816b37122809f896bb2.tar.bz2 busybox-w32-c4f12f59cc907577d787f816b37122809f896bb2.zip |
-Wall fixes by Cristian Ionescu-Idbohrn. No object code changes.
Diffstat (limited to 'networking/udhcp/files.c')
-rw-r--r-- | networking/udhcp/files.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, | |||
93 | #if ENABLE_FEATURE_RFC3397 | 93 | #if ENABLE_FEATURE_RFC3397 |
94 | if ((option->flags & TYPE_MASK) == OPTION_STR1035) | 94 | if ((option->flags & TYPE_MASK) == OPTION_STR1035) |
95 | /* reuse buffer and length for RFC1035-formatted string */ | 95 | /* reuse buffer and length for RFC1035-formatted string */ |
96 | buffer = dname_enc(NULL, 0, buffer, &length); | 96 | buffer = (char *)dname_enc(NULL, 0, buffer, &length); |
97 | #endif | 97 | #endif |
98 | 98 | ||
99 | /* make a new option */ | 99 | /* make a new option */ |
@@ -122,7 +122,7 @@ static void attach_option(struct option_set **opt_list, | |||
122 | #if ENABLE_FEATURE_RFC3397 | 122 | #if ENABLE_FEATURE_RFC3397 |
123 | if ((option->flags & TYPE_MASK) == OPTION_STR1035) | 123 | if ((option->flags & TYPE_MASK) == OPTION_STR1035) |
124 | /* reuse buffer and length for RFC1035-formatted string */ | 124 | /* reuse buffer and length for RFC1035-formatted string */ |
125 | buffer = dname_enc(existing->data + 2, | 125 | buffer = (char *)dname_enc(existing->data + 2, |
126 | existing->data[OPT_LEN], buffer, &length); | 126 | existing->data[OPT_LEN], buffer, &length); |
127 | #endif | 127 | #endif |
128 | if (existing->data[OPT_LEN] + length <= 255) { | 128 | if (existing->data[OPT_LEN] + length <= 255) { |