Remove ng_connect_t where it is unused. Probably it remained from ng_source.c.
This commit is contained in:
parent
8633e59c17
commit
30afbe338b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143607
@ -96,7 +96,6 @@ static ng_rcvmsg_t ng_eiface_rcvmsg;
|
||||
static ng_shutdown_t ng_eiface_rmnode;
|
||||
static ng_newhook_t ng_eiface_newhook;
|
||||
static ng_rcvdata_t ng_eiface_rcvdata;
|
||||
static ng_connect_t ng_eiface_connect;
|
||||
static ng_disconnect_t ng_eiface_disconnect;
|
||||
|
||||
/* Node type descriptor */
|
||||
@ -108,7 +107,6 @@ static struct ng_type typestruct = {
|
||||
.rcvmsg = ng_eiface_rcvmsg,
|
||||
.shutdown = ng_eiface_rmnode,
|
||||
.newhook = ng_eiface_newhook,
|
||||
.connect = ng_eiface_connect,
|
||||
.rcvdata = ng_eiface_rcvdata,
|
||||
.disconnect = ng_eiface_disconnect,
|
||||
.cmdlist = ng_eiface_cmdlist
|
||||
@ -559,18 +557,6 @@ ng_eiface_rmnode(node_p node)
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* This is called once we've already connected a new hook to the other node.
|
||||
* It gives us a chance to balk at the last minute.
|
||||
*/
|
||||
static int
|
||||
ng_eiface_connect(hook_p hook)
|
||||
{
|
||||
/* be really amiable and just say "YUP that's OK by me! " */
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Hook disconnection
|
||||
*/
|
||||
|
@ -67,7 +67,6 @@ static ng_constructor_t ng_etf_constructor;
|
||||
static ng_rcvmsg_t ng_etf_rcvmsg;
|
||||
static ng_shutdown_t ng_etf_shutdown;
|
||||
static ng_newhook_t ng_etf_newhook;
|
||||
static ng_connect_t ng_etf_connect;
|
||||
static ng_rcvdata_t ng_etf_rcvdata; /* note these are both ng_rcvdata_t */
|
||||
static ng_disconnect_t ng_etf_disconnect;
|
||||
|
||||
@ -120,7 +119,6 @@ static struct ng_type typestruct = {
|
||||
.rcvmsg = ng_etf_rcvmsg,
|
||||
.shutdown = ng_etf_shutdown,
|
||||
.newhook = ng_etf_newhook,
|
||||
.connect = ng_etf_connect,
|
||||
.rcvdata = ng_etf_rcvdata,
|
||||
.disconnect = ng_etf_disconnect,
|
||||
.cmdlist = ng_etf_cmdlist,
|
||||
@ -446,16 +444,6 @@ ng_etf_shutdown(node_p node)
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* This is called once we've already connected a new hook to the other node.
|
||||
* It gives us a chance to balk at the last minute.
|
||||
*/
|
||||
static int
|
||||
ng_etf_connect(hook_p hook)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Hook disconnection
|
||||
*
|
||||
|
@ -79,7 +79,6 @@ static ng_constructor_t ng_pppoe_constructor;
|
||||
static ng_rcvmsg_t ng_pppoe_rcvmsg;
|
||||
static ng_shutdown_t ng_pppoe_shutdown;
|
||||
static ng_newhook_t ng_pppoe_newhook;
|
||||
static ng_connect_t ng_pppoe_connect;
|
||||
static ng_rcvdata_t ng_pppoe_rcvdata;
|
||||
static ng_disconnect_t ng_pppoe_disconnect;
|
||||
|
||||
@ -175,7 +174,6 @@ static struct ng_type typestruct = {
|
||||
.rcvmsg = ng_pppoe_rcvmsg,
|
||||
.shutdown = ng_pppoe_shutdown,
|
||||
.newhook = ng_pppoe_newhook,
|
||||
.connect = ng_pppoe_connect,
|
||||
.rcvdata = ng_pppoe_rcvdata,
|
||||
.disconnect = ng_pppoe_disconnect,
|
||||
.cmdlist = ng_pppoe_cmds,
|
||||
@ -1551,17 +1549,6 @@ ng_pppoe_shutdown(node_p node)
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* This is called once we've already connected a new hook to the other node.
|
||||
* It gives us a chance to balk at the last minute.
|
||||
*/
|
||||
static int
|
||||
ng_pppoe_connect(hook_p hook)
|
||||
{
|
||||
/* be really amiable and just say "YUP that's OK by me! " */
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Hook disconnection
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user