struct dhcp_lease *lease = &state->lease;
struct interface *iface = state->interface;
int gotlease = -1;
- char *reason = NULL;
+ const char *reason = NULL;
/* No NAK, so reset the backoff */
state->nakoff = 1;
return dhcp;
}
-ssize_t
+static ssize_t
print_string(char *s, const uint8_t *data, ssize_t len)
{
uint8_t c;
print_option(char *s, int type, const uint8_t *data, ssize_t len)
{
const uint8_t *e, *t;
- uint8_t u8;
uint16_t u16;
int16_t s16;
uint32_t u32;
int
configure_env(const char *prefix, const struct dhcp_message *dhcp)
{
- int i;
- const uint8_t *p, *e, *t;
- uint32_t u32;
- uint16_t u16;
- uint8_t u8;
+ unsigned int i;
+ const uint8_t *p;
struct in_addr addr;
struct in_addr net;
struct in_addr brd;