Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netatalk Define sa_family_t, and use it for sat_family.



details:   https://anonhg.NetBSD.org/src/rev/54bfe3167dbb
branches:  trunk
changeset: 493888:54bfe3167dbb
user:      kleink <kleink%NetBSD.org@localhost>
date:      Mon Jun 26 16:16:42 2000 +0000

description:
Define sa_family_t, and use it for sat_family.

diffstat:

 sys/netatalk/at.h |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 6b84a132766d -r 54bfe3167dbb sys/netatalk/at.h
--- a/sys/netatalk/at.h Mon Jun 26 16:12:33 2000 +0000
+++ b/sys/netatalk/at.h Mon Jun 26 16:16:42 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: at.h,v 1.2 1998/09/09 04:32:39 thorpej Exp $   */
+/*     $NetBSD: at.h,v 1.3 2000/06/26 16:16:42 kleink Exp $    */
 
 /*
  * Copyright (c) 1990,1991 Regents of The University of Michigan.
@@ -28,6 +28,14 @@
 
 #ifndef _NETATALK_AT_H_
 #define _NETATALK_AT_H_
+
+#include <sys/ansi.h>
+
+#ifndef sa_family_t
+typedef __sa_family_t  sa_family_t;
+#define sa_family_t    sa_family_t
+#endif
+
 /*
  * Supported protocols
  */
@@ -75,7 +83,7 @@
  */
 struct sockaddr_at {
        u_int8_t        sat_len;
-       u_int8_t        sat_family;
+       sa_family_t     sat_family;
        u_int8_t        sat_port;
        struct at_addr  sat_addr;
        union {



Home | Main Index | Thread Index | Old Index