/*
- * Copyright (c) 1985 Regents of the University of California.
- * All rights reserved. The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
+ * Copyright (c) 1985 The Regents of the University of California.
+ * All rights reserved.
*
- * This file include significant work done at Cornell University
- * by Bill Nesheim. That work included by permission.
+ * This file includes significant work done at Cornell University by
+ * Bill Nesheim. That work included by permission.
+ *
+ * %sccs.include.redist.c%
*/
#ifndef lint
-static char sccsid[] = "@(#)af.c 5.5 (Berkeley) %G%";
-#endif not lint
-
+static char sccsid[] = "@(#)af.c 5.10 (Berkeley) %G%";
+#endif /* not lint */
#include "defs.h"
null_portmatch(), null_portcheck(),
null_checkhost(), null_ishost(), null_canon();
int xnnet_hash(), xnnet_netmatch(), xnnet_output(),
- xnnet_portmatch();
+ xnnet_portmatch(),
xnnet_checkhost(), xnnet_ishost(), xnnet_canon();
#define NIL \
{ null_hash, null_netmatch, null_output, \
struct afswitch afswitch[AF_MAX] =
{ NIL, NIL, NIL, NIL, NIL, NIL, XNSNET, NIL, NIL, NIL, NIL };
-struct sockaddr_ns xnnet_default = { AF_NS };
+struct sockaddr_ns xnnet_default = { sizeof(struct sockaddr_ns), AF_NS };
union ns_net ns_anynet;
union ns_net ns_zeronet;
for (ifp = ifnet; ifp; ifp = ifp->int_next) {
sns->sns_addr.x_net =
satons_addr(ifp->int_addr).x_net;
- if (sendto(s, msg, size, flags, sns, sizeof (*sns)) < 0)
- syslog(LOG_ERR,"sendto: %m");
+ (void) sendto(s, msg, size, flags, sns, sizeof (*sns));
}
return;
}
- if (sendto(s, msg, size, flags, sns, sizeof (*sns)) < 0)
- syslog(LOG_ERR,"sendto: %m");
+ (void) sendto(s, msg, size, flags, sns, sizeof (*sns));
}
/*