summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/netgraph/ng_socket.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/netgraph/ng_socket.h b/sys/netgraph/ng_socket.h
index 204f11d..b7e8310 100644
--- a/sys/netgraph/ng_socket.h
+++ b/sys/netgraph/ng_socket.h
@@ -58,13 +58,11 @@ enum {
NGM_SOCK_CMD_LINGER /* Keep socket even if 0 hooks */
};
-
-
/* Netgraph version of struct sockaddr */
struct sockaddr_ng {
- u_char sg_len; /* total length */
- u_char sg_family; /* address family */
- char sg_data[14]; /* actually longer; address value */
+ unsigned char sg_len; /* total length */
+ sa_family_t sg_family; /* address family */
+ char sg_data[14]; /* actually longer; address value */
};
#endif /* _NETGRAPH_NG_SOCKET_H_ */
OpenPOWER on IntegriCloud