Skip to content

Commit

Permalink
removed unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmei committed Apr 24, 2002
1 parent bf18cda commit 9607b22
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions kame/kame/dhcp6/dhcp6s.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ static char rdatabuf[BUFSIZ];
static int rmsgctllen;
static char *rmsgctlbuf;

static struct in6_addr link_local_prefix, site_local_prefix, global_prefix;
#define LINK_LOCAL_PLEN 10
#define SITE_LOCAL_PLEN 10
#define GLOBAL_PLEN 3
Expand Down Expand Up @@ -188,20 +187,6 @@ server6_init()
if (ifidx == 0)
errx(1, "invalid interface %s", device);

/* initialize constant variables */
if (inet_pton(AF_INET6, "fe80::", &link_local_prefix) != 1) {
errx(1, "inet_pton failed for fec0::");
/* NOTREACHED */
}
if (inet_pton(AF_INET6, "fec0::", &site_local_prefix) != 1) {
errx(1, "inet_pton failed for fec0::");
/* NOTREACHED */
}
if (inet_pton(AF_INET6, "2000::", &global_prefix) != 1) {
errx(1, "inet_pton failed");
/* NOTREACHED */
}

/* initialize send/receive buffer */
iov[0].iov_base = (caddr_t)rdatabuf;
iov[0].iov_len = sizeof(rdatabuf);
Expand Down

0 comments on commit 9607b22

Please sign in to comment.