summaryrefslogtreecommitdiff
path: root/src/rtnl.c
diff options
context:
space:
mode:
authorHenrique Dante de Almeida <hdante@profusion.mobi>2012-05-08 16:20:58 -0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-05-09 17:16:10 +0300
commitecef3b775192ced774d70a7bbb0689132d75eb0c (patch)
treec0ca8877a1ad8942d4251b1365fb295c560f7a4c /src/rtnl.c
parent27325bafff26e395eb87239f6e0289af6a760bcc (diff)
downloadconnman-ecef3b775192ced774d70a7bbb0689132d75eb0c.tar.gz
connman-ecef3b775192ced774d70a7bbb0689132d75eb0c.tar.bz2
connman-ecef3b775192ced774d70a7bbb0689132d75eb0c.zip
rtnl: Remove dead assignment
Diffstat (limited to 'src/rtnl.c')
-rw-r--r--src/rtnl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtnl.c b/src/rtnl.c
index e53f5e88..1aaef29c 100644
--- a/src/rtnl.c
+++ b/src/rtnl.c
@@ -1189,7 +1189,7 @@ static const char **rtnl_nd_opt_dnssl(struct nd_opt_hdr *opt, guint32 *lifetime)
static void rtnl_newnduseropt(struct nlmsghdr *hdr)
{
struct nduseroptmsg *msg = (struct nduseroptmsg *) NLMSG_DATA(hdr);
- struct nd_opt_hdr *opt = (void *)&msg[1];
+ struct nd_opt_hdr *opt;
guint32 lifetime = -1;
const char **domains = NULL;
struct in6_addr *servers = NULL;