Make the sg_len and sg_family members of the sockaddr_ng the same type

as the corresponding values in sockaddr are.
This commit is contained in:
Gleb Smirnoff 2006-10-17 11:03:55 +00:00
parent bb964e745b
commit 81ba27c8d9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163462

View File

@ -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_ */