mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-20 15:43:16 +00:00
ng_socket: don't assign NULL in C99 sparse initializer
This commit is contained in:
parent
607beb88af
commit
7496792841
@ -1135,31 +1135,22 @@ dummy_disconnect(struct socket *so)
|
||||
*/
|
||||
|
||||
static struct pr_usrreqs ngc_usrreqs = {
|
||||
.pru_abort = NULL,
|
||||
.pru_attach = ngc_attach,
|
||||
.pru_bind = ngc_bind,
|
||||
.pru_connect = ngc_connect,
|
||||
.pru_detach = ngc_detach,
|
||||
.pru_disconnect = dummy_disconnect,
|
||||
.pru_peeraddr = NULL,
|
||||
.pru_send = ngc_send,
|
||||
.pru_shutdown = NULL,
|
||||
.pru_sockaddr = ng_getsockaddr,
|
||||
.pru_close = NULL,
|
||||
};
|
||||
|
||||
static struct pr_usrreqs ngd_usrreqs = {
|
||||
.pru_abort = NULL,
|
||||
.pru_attach = ngd_attach,
|
||||
.pru_bind = NULL,
|
||||
.pru_connect = ngd_connect,
|
||||
.pru_detach = ngd_detach,
|
||||
.pru_disconnect = dummy_disconnect,
|
||||
.pru_peeraddr = NULL,
|
||||
.pru_send = ngd_send,
|
||||
.pru_shutdown = NULL,
|
||||
.pru_sockaddr = ng_getsockaddr,
|
||||
.pru_close = NULL,
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user