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 | |
parent | 7981d79ef0bea5c8224edd949157be57ffd1173a (diff) | |
download | busybox-42816c204d2c592a86498c3d3b215c9b4d80e9e1.tar.gz |
udhcpc: remove unused argument in sprint_nip6
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-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) return sprintf(dest, "%s%u.%u.%u.%u", pre, ip[0], ip[1], ip[2], ip[3]); } -static int sprint_nip6(char *dest, const char *pre, const uint8_t *ip) +static int sprint_nip6(char *dest, /*const char *pre,*/ const uint8_t *ip) { char hexstrbuf[16 * 2]; bin2hex(hexstrbuf, (void*)ip, 16); - return sprintf(dest, "%s" + return sprintf(dest, /* "%s" */ "%.4s:%.4s:%.4s:%.4s:%.4s:%.4s:%.4s:%.4s", - pre, + /* pre, */ hexstrbuf + 0 * 4, hexstrbuf + 1 * 4, hexstrbuf + 2 * 4, @@ -293,7 +293,7 @@ static NOINLINE char *xmalloc_optname_optval(uint8_t *option, const struct dhcp_ /* 6rdPrefixLen */ dest += sprintf(dest, "%u ", *option++); /* 6rdPrefix */ - dest += sprint_nip6(dest, "", option); + dest += sprint_nip6(dest, /* "", */ option); option += 16; len -= 1 + 1 + 16; /* 6rdBRIPv4Address(es) */ |