checkpoint of hacking for mail.cs.berkeley.edu
[unix-history] / usr / src / sbin / XNSrouted / af.c
index e2a30c6..3d39bed 100644 (file)
@@ -5,21 +5,11 @@
  * This file includes 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.
  *
- * Redistribution and use in source and binary forms are permitted
- * provided that the above copyright notice and this paragraph are
- * duplicated in all such forms and that any documentation,
- * advertising materials, and other materials related to such
- * distribution and use acknowledge that the software was developed
- * by the University of California, Berkeley.  The name of the
- * University may not be used to endorse or promote products derived
- * from this software without specific prior written permission.
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
- * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ * %sccs.include.redist.c%
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)af.c       5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)af.c       5.11 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "defs.h"
 #endif /* not lint */
 
 #include "defs.h"
@@ -113,12 +103,14 @@ 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;
-                       (void) sendto(s, msg, size, flags, sns, sizeof (*sns));
+                       (void) sendto(s, msg, size, flags,
+                           (struct sockaddr *)sns, sizeof (*sns));
                }
                return;
        }
        
                }
                return;
        }
        
-       (void) sendto(s, msg, size, flags, sns, sizeof (*sns));
+       (void) sendto(s, msg, size, flags,
+           (struct sockaddr *)sns, sizeof (*sns));
 }
 
 /*
 }
 
 /*