diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-10-20 10:52:07 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-10-20 10:52:07 +0200 |
commit | 42816c204d2c592a86498c3d3b215c9b4d80e9e1 (patch) | |
tree | f5a4973636f018ab6f7f3b223d6168cc9bffe6c4 /networking/udhcp/dhcpc.c | |
parent | 7981d79ef0bea5c8224edd949157be57ffd1173a (diff) | |
download | busybox-w32-42816c204d2c592a86498c3d3b215c9b4d80e9e1.tar.gz busybox-w32-42816c204d2c592a86498c3d3b215c9b4d80e9e1.tar.bz2 busybox-w32-42816c204d2c592a86498c3d3b215c9b4d80e9e1.zip |
udhcpc: remove unused argument in sprint_nip6
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r-- | networking/udhcp/dhcpc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index b84196926..d1e40ee65 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c | |||
@@ -124,13 +124,13 @@ static int sprint_nip(char *dest, const char *pre, const uint8_t *ip) | |||
124 | return sprintf(dest, "%s%u.%u.%u.%u", pre, ip[0], ip[1], ip[2], ip[3]); | 124 | return sprintf(dest, "%s%u.%u.%u.%u", pre, ip[0], ip[1], ip[2], ip[3]); |
125 | } | 125 | } |
126 | 126 | ||
127 | static int sprint_nip6(char *dest, const char *pre, const uint8_t *ip) | 127 | static int sprint_nip6(char *dest, /*const char *pre,*/ const uint8_t *ip) |
128 | { | 128 | { |
129 | char hexstrbuf[16 * 2]; | 129 | char hexstrbuf[16 * 2]; |
130 | bin2hex(hexstrbuf, (void*)ip, 16); | 130 | bin2hex(hexstrbuf, (void*)ip, 16); |
131 | return sprintf(dest, "%s" | 131 | return sprintf(dest, /* "%s" */ |
132 | "%.4s:%.4s:%.4s:%.4s:%.4s:%.4s:%.4s:%.4s", | 132 | "%.4s:%.4s:%.4s:%.4s:%.4s:%.4s:%.4s:%.4s", |
133 | pre, | 133 | /* pre, */ |
134 | hexstrbuf + 0 * 4, | 134 | hexstrbuf + 0 * 4, |
135 | hexstrbuf + 1 * 4, | 135 | hexstrbuf + 1 * 4, |
136 | hexstrbuf + 2 * 4, | 136 | hexstrbuf + 2 * 4, |
@@ -293,7 +293,7 @@ static NOINLINE char *xmalloc_optname_optval(uint8_t *option, const struct dhcp_ | |||
293 | /* 6rdPrefixLen */ | 293 | /* 6rdPrefixLen */ |
294 | dest += sprintf(dest, "%u ", *option++); | 294 | dest += sprintf(dest, "%u ", *option++); |
295 | /* 6rdPrefix */ | 295 | /* 6rdPrefix */ |
296 | dest += sprint_nip6(dest, "", option); | 296 | dest += sprint_nip6(dest, /* "", */ option); |
297 | option += 16; | 297 | option += 16; |
298 | len -= 1 + 1 + 16; | 298 | len -= 1 + 1 + 16; |
299 | /* 6rdBRIPv4Address(es) */ | 299 | /* 6rdBRIPv4Address(es) */ |