Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Apr 2014 01:55:53 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r264213 - in head/sys: netinet netinet6
Message-ID:  <201404070155.s371trr1065312@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Mon Apr  7 01:55:53 2014
New Revision: 264213
URL: http://svnweb.freebsd.org/changeset/base/264213

Log:
  Minor style cleanups.

Modified:
  head/sys/netinet/udp_usrreq.c
  head/sys/netinet/udp_var.h
  head/sys/netinet6/in6_proto.c

Modified: head/sys/netinet/udp_usrreq.c
==============================================================================
--- head/sys/netinet/udp_usrreq.c	Mon Apr  7 01:53:03 2014	(r264212)
+++ head/sys/netinet/udp_usrreq.c	Mon Apr  7 01:55:53 2014	(r264213)
@@ -403,7 +403,7 @@ udp_input(struct mbuf *m, int off)
 	 */
 	ip = mtod(m, struct ip *);
 	if (m->m_len < iphlen + sizeof(struct udphdr)) {
-		if ((m = m_pullup(m, iphlen + sizeof(struct udphdr))) == 0) {
+		if ((m = m_pullup(m, iphlen + sizeof(struct udphdr))) == NULL) {
 			UDPSTAT_INC(udps_hdrops);
 			return;
 		}

Modified: head/sys/netinet/udp_var.h
==============================================================================
--- head/sys/netinet/udp_var.h	Mon Apr  7 01:53:03 2014	(r264212)
+++ head/sys/netinet/udp_var.h	Mon Apr  7 01:55:53 2014	(r264213)
@@ -158,24 +158,24 @@ get_pcblist(uint8_t protocol)
 	return (protocol == IPPROTO_UDP) ? &V_udb : &V_ulitecb;
 }
 
-int		 udp_newudpcb(struct inpcb *);
-void		 udp_discardcb(struct udpcb *);
+int		udp_newudpcb(struct inpcb *);
+void		udp_discardcb(struct udpcb *);
 
-void		 udp_ctlinput(int, struct sockaddr *, void *);
-void		 udplite_ctlinput(int, struct sockaddr *, void *);
-int		 udp_ctloutput(struct socket *, struct sockopt *);
-void		 udp_init(void);
-void		 udplite_init(void);
+void		udp_ctlinput(int, struct sockaddr *, void *);
+void		udplite_ctlinput(int, struct sockaddr *, void *);
+int		udp_ctloutput(struct socket *, struct sockopt *);
+void		udp_init(void);
+void		udplite_init(void);
 #ifdef VIMAGE
-void		 udp_destroy(void);
-void		 udplite_destroy(void);
+void		udp_destroy(void);
+void		udplite_destroy(void);
 #endif
-void		 udp_input(struct mbuf *, int);
-void		 udplite_input(struct mbuf *, int);
+void		udp_input(struct mbuf *, int);
+void		udplite_input(struct mbuf *, int);
 struct inpcb	*udp_notify(struct inpcb *inp, int errno);
-int		 udp_shutdown(struct socket *so);
+int		udp_shutdown(struct socket *so);
 
-int udp_set_kernel_tunneling(struct socket *so, udp_tun_func_t f);
+int		udp_set_kernel_tunneling(struct socket *so, udp_tun_func_t f);
 
 #endif /* _KERNEL */
 

Modified: head/sys/netinet6/in6_proto.c
==============================================================================
--- head/sys/netinet6/in6_proto.c	Mon Apr  7 01:53:03 2014	(r264212)
+++ head/sys/netinet6/in6_proto.c	Mon Apr  7 01:55:53 2014	(r264213)
@@ -208,7 +208,7 @@ struct ip6protosw inet6sw[] = {
 	.pr_protocol =		IPPROTO_SCTP,
 	.pr_flags =		PR_WANTRCVD,
 	.pr_input =		sctp6_input,
-	.pr_ctlinput =	sctp6_ctlinput,
+	.pr_ctlinput =		sctp6_ctlinput,
 	.pr_ctloutput =		sctp_ctloutput,
 	.pr_drain =		sctp_drain,
 	.pr_usrreqs =		&sctp6_usrreqs



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404070155.s371trr1065312>