From: David M. <da...@da...> - 2019-03-16 19:19:13
|
From: Jon Maloy <jon...@er...> Date: Fri, 15 Mar 2019 21:11:00 +0100 > @@ -2349,6 +2349,16 @@ static int tipc_wait_for_connect(struct socket *sock, long *timeo_p) > return 0; > } > > +static int tipc_sockaddr_is_sane(struct sockaddr_tipc *addr) > +{ > + if (addr->family != AF_TIPC) > + return 0; I think bool and true/false are most appropriate for this function. |