pipex(4): kill unused declaration

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

pipex(4): kill unused declaration

Vitaliy Makkoveev
`udpcksum' declared but not used in net/pipex.c, so kill it

Index: sys/net/pipex.c
===================================================================
RCS file: /cvs/src/sys/net/pipex.c,v
retrieving revision 1.116
diff -u -p -r1.116 pipex.c
--- sys/net/pipex.c 22 Jun 2020 09:38:15 -0000 1.116
+++ sys/net/pipex.c 30 Jun 2020 13:28:48 -0000
@@ -104,9 +104,6 @@ struct mbuf_queue pipexoutq = MBUF_QUEUE
 /* borrow an mbuf pkthdr field */
 #define ph_ppp_proto ether_vtag
 
-/* from udp_usrreq.c */
-extern int udpcksum;
-
 #ifdef PIPEX_DEBUG
 int pipex_debug = 0; /* systcl net.inet.ip.pipex_debug */
 #endif

Reply | Threaded
Open this post in threaded view
|

Re: pipex(4): kill unused declaration

Claudio Jeker
On Tue, Jun 30, 2020 at 04:30:24PM +0300, Vitaliy Makkoveev wrote:
> `udpcksum' declared but not used in net/pipex.c, so kill it

OK claudio@

> Index: sys/net/pipex.c
> ===================================================================
> RCS file: /cvs/src/sys/net/pipex.c,v
> retrieving revision 1.116
> diff -u -p -r1.116 pipex.c
> --- sys/net/pipex.c 22 Jun 2020 09:38:15 -0000 1.116
> +++ sys/net/pipex.c 30 Jun 2020 13:28:48 -0000
> @@ -104,9 +104,6 @@ struct mbuf_queue pipexoutq = MBUF_QUEUE
>  /* borrow an mbuf pkthdr field */
>  #define ph_ppp_proto ether_vtag
>  
> -/* from udp_usrreq.c */
> -extern int udpcksum;
> -
>  #ifdef PIPEX_DEBUG
>  int pipex_debug = 0; /* systcl net.inet.ip.pipex_debug */
>  #endif
>

--
:wq Claudio