projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add Kerberos info
[unix-history]
/
usr
/
src
/
sbin
/
XNSrouted
/
af.c
diff --git
a/usr/src/sbin/XNSrouted/af.c
b/usr/src/sbin/XNSrouted/af.c
index
2603641
..
ace2ca0
100644
(file)
--- a/
usr/src/sbin/XNSrouted/af.c
+++ b/
usr/src/sbin/XNSrouted/af.c
@@
-1,16
+1,16
@@
/*
/*
- * 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
*/
#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"
#include "defs.h"
@@
-21,7
+21,7
@@
int null_hash(), null_netmatch(), null_output(),
null_portmatch(), null_portcheck(),
null_checkhost(), null_ishost(), null_canon();
int xnnet_hash(), xnnet_netmatch(), xnnet_output(),
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, \
xnnet_checkhost(), xnnet_ishost(), xnnet_canon();
#define NIL \
{ null_hash, null_netmatch, null_output, \
@@
-35,7
+35,7
@@
int xnnet_hash(), xnnet_netmatch(), xnnet_output(),
struct afswitch afswitch[AF_MAX] =
{ NIL, NIL, NIL, NIL, NIL, NIL, XNSNET, NIL, NIL, NIL, NIL };
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;
union ns_net ns_anynet;
union ns_net ns_zeronet;
@@
-103,14
+103,12
@@
xnnet_output(flags, sns, size)
for (ifp = ifnet; ifp; ifp = ifp->int_next) {
sns->sns_addr.x_net =
satons_addr(ifp->int_addr).x_net;
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;
}
}
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));
}
/*
}
/*