aboutsummaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorSUZUKI, Shinsuke <suz@kame.net>2007-07-25 07:09:25 +0000
committerBjørn Mork <bjorn@mork.no>2010-08-06 15:37:37 +0200
commitd6cffd62c58e295d4dad72ef45ba39f202f9374c (patch)
treed8fa7b9ccc0bb78adb4b0ffef9183d825eab4969 /common.c
parent47802624717c287dbeec18dd6f76e7683fc13ab0 (diff)
config.c, lease.h, common.c: removed compilation warnings
Diffstat (limited to 'common.c')
-rw-r--r--common.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/common.c b/common.c
index 2f42ed8..8011423 100644
--- a/common.c
+++ b/common.c
@@ -359,7 +359,6 @@ dhcp6_get_addr(optlen, cp, type, list)
struct dhcp6_list *list;
{
void *val;
- int option;
if (optlen % sizeof(struct in6_addr) || optlen == 0) {
dprintf(LOG_INFO, FNAME,
@@ -1493,7 +1492,6 @@ dhcp6_get_options(p, ep, optinfo)
char *bp, *cp, *val;
u_int16_t val16;
u_int32_t val32;
- struct in6_addr valaddr;
struct dhcp6opt_ia optia;
struct dhcp6_ia ia;
struct dhcp6_list sublist;
@@ -2149,7 +2147,7 @@ sprint_uint64(buf, buflen, i64)
u_int64_t i64;
{
u_int16_t rd0, rd1, rd2, rd3;
- u_int16_t *ptr = (u_int16_t *)&i64;
+ u_int16_t *ptr = (u_int16_t *)(void *)&i64;
rd0 = ntohs(*ptr++);
rd1 = ntohs(*ptr++);
@@ -2247,7 +2245,7 @@ dhcp6_set_options(type, optbp, optep, optinfo)
struct dhcp6_optinfo *optinfo;
{
struct dhcp6opt *p = optbp;
- struct dhcp6_listval *stcode, *op, *d;
+ struct dhcp6_listval *stcode, *op;
int len = 0, optlen;
char *tmpbuf = NULL;