diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-04-07 18:43:18 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-04-07 18:43:18 +0000 |
commit | 3b54751f98c2ee81be0c590c9a39c1b6d9fd7d4b (patch) | |
tree | e9a76d58fa24572bbad38eafcd9f6353b3f1a10a | |
parent | f22ad540e1c1242a9c3aa37b8d6ee5e6072a6462 (diff) |
remove unnecessary typecasts.
ok ho@
-rw-r--r-- | sbin/isakmpd/virtual.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/isakmpd/virtual.c b/sbin/isakmpd/virtual.c index 09c2b7bffac..d6c29b769bc 100644 --- a/sbin/isakmpd/virtual.c +++ b/sbin/isakmpd/virtual.c @@ -1,4 +1,4 @@ -/* $OpenBSD: virtual.c,v 1.16 2005/04/06 16:00:20 deraadt Exp $ */ +/* $OpenBSD: virtual.c,v 1.17 2005/04/07 18:43:17 hshoexer Exp $ */ /* * Copyright (c) 2004 Håkan Olsson. All rights reserved. @@ -257,7 +257,7 @@ virtual_bind(const struct sockaddr *addr) free(v); return 0; } - ((struct transport *)v->main)->virtual = (struct transport *)v; + v->main->virtual = (struct transport *)v; #if defined (USE_NAT_TRAVERSAL) if (!disable_nat_t) { @@ -282,7 +282,7 @@ virtual_bind(const struct sockaddr *addr) free(v); return 0; } - ((struct transport *)v->encap)->virtual = (struct transport *)v; + v->encap->virtual = (struct transport *)v; } #endif v->encap_is_active = 0; |