Print this page
8485 Remove set but unused variables in usr/src/cmd
@@ -18,10 +18,11 @@
*
* CDDL HEADER END
*/
/*
+ * Copyright 2017 Gary Mills
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
@@ -582,11 +583,11 @@
static void
show_options(const uint8_t *data, int len)
{
dhcpv6_option_t d6o;
- uint_t olen, retlen;
+ uint_t olen;
uint16_t val16;
uint16_t type;
uint32_t val32;
const uint8_t *ostart;
char *str, *sp;
@@ -764,11 +765,11 @@
break;
case DHCPV6_OPT_RELAY_MSG:
if (olen > 0) {
oldnest = prot_nest_prefix;
prot_nest_prefix = prot_prefix;
- retlen = interpret_dhcpv6(F_DTAIL, data, olen);
+ (void) interpret_dhcpv6(F_DTAIL, data, olen);
prot_prefix = prot_nest_prefix;
prot_nest_prefix = oldnest;
}
break;
case DHCPV6_OPT_AUTH: {