diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-10-14 20:42:06 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-10-14 20:42:06 +0000 |
commit | ceeaa78775416bd8773c224676a55236a83e23a3 (patch) | |
tree | 797039933d4f8974ff7db6a26d04c272fe54a743 /usr.sbin/ospf6d/packet.c | |
parent | 97a2e812a7fee67f316255c168f3a723da7fc6e7 (diff) |
Switch log_sockaddr() to take a void * so it is not necessary to cast the
sockaddr_in6 or sockaddr_in to a sockaddr.
Diffstat (limited to 'usr.sbin/ospf6d/packet.c')
-rw-r--r-- | usr.sbin/ospf6d/packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospf6d/packet.c b/usr.sbin/ospf6d/packet.c index da471d98a70..3f8f6ab8abf 100644 --- a/usr.sbin/ospf6d/packet.c +++ b/usr.sbin/ospf6d/packet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.3 2007/10/10 14:09:25 claudio Exp $ */ +/* $OpenBSD: packet.c,v 1.4 2007/10/14 20:42:05 claudio Exp $ */ /* * Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org> @@ -104,7 +104,7 @@ send_packet(struct iface *iface, void *pkt, size_t len, } log_debug("send_packet: iface %d addr %s dest %s", iface->ifindex, - log_in6addr(&iface->addr), log_sockaddr((void *)&sa6)); + log_in6addr(&iface->addr), log_sockaddr(&sa6)); if (sendto(iface->fd, pkt, len, MSG_DONTROUTE, (struct sockaddr *)&sa6, sizeof(sa6)) == -1) { log_warn("send_packet: error sending packet on interface %s", |