From a3b68c4e0fa54b469eb8840315fe8011ca170e20 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Fri, 4 Feb 2005 07:40:55 +0000 Subject: Use log_warn() insteade of log_warnx() after sendto() and if_set_mcast() errors as errno was set by the call. --- usr.sbin/ospfd/packet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/ospfd/packet.c') diff --git a/usr.sbin/ospfd/packet.c b/usr.sbin/ospfd/packet.c index 7272116fd41..e9fe902ad1d 100644 --- a/usr.sbin/ospfd/packet.c +++ b/usr.sbin/ospfd/packet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.2 2005/01/28 17:53:33 norby Exp $ */ +/* $OpenBSD: packet.c,v 1.3 2005/02/04 07:40:54 claudio Exp $ */ /* * Copyright (c) 2004, 2005 Esben Norby @@ -67,14 +67,14 @@ send_packet(struct iface *iface, char *pkt, int len, struct sockaddr_in *dst) /* set outgoing interface for multicast traffic */ if (IN_MULTICAST(ntohl(dst->sin_addr.s_addr))) if (if_set_mcast(iface) == -1) { - log_debug("send_packet: error setting multicast " + log_warn("send_packet: error setting multicast " "interface, %s", iface->name); return (-1); } if (sendto(iface->fd, pkt, len, 0, (struct sockaddr *)dst, sizeof(*dst)) == -1 ) { - log_warnx("send_packet: error sending packet on interface %s", + log_warn("send_packet: error sending packet on interface %s", iface->name); return (-1); } -- cgit v1.2.3