Date: Tue, 29 Sep 2009 23:00:28 +0000 (UTC) From: Lawrence Stewart <lstewart@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r197626 - projects/tcp_ffcaia2008_8.x/sys/netinet Message-ID: <200909292300.n8TN0Sjt098329@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: lstewart Date: Tue Sep 29 23:00:28 2009 New Revision: 197626 URL: http://svn.freebsd.org/changeset/base/197626 Log: Remove all uses of the register keyword. The compiler is likely to do a better job at managing this stuff than me. Sponsored by: FreeBSD Foundation Suggested by: rpaulo@ Modified: projects/tcp_ffcaia2008_8.x/sys/netinet/siftr.c Modified: projects/tcp_ffcaia2008_8.x/sys/netinet/siftr.c ============================================================================== --- projects/tcp_ffcaia2008_8.x/sys/netinet/siftr.c Tue Sep 29 21:28:32 2009 (r197625) +++ projects/tcp_ffcaia2008_8.x/sys/netinet/siftr.c Tue Sep 29 23:00:28 2009 (r197626) @@ -611,7 +611,7 @@ siftr_pkt_manager_thread(void *arg) static uint32_t hash_pkt(struct mbuf *m, uint32_t offset) { - register uint32_t hash = 0; + uint32_t hash = 0; while ((m != NULL) && (offset > m->m_len)) { /* @@ -655,12 +655,12 @@ siftr_chkpkt( void *arg, struct inpcb *inp ) { - register struct pkt_node *pkt_node = NULL; - register struct ip *ip = NULL; - register struct tcphdr *th = NULL; - register struct tcpcb *tp = NULL; - register unsigned int ip_hl = 0; - register uint8_t inp_locally_locked = 0; + struct pkt_node *pkt_node = NULL; + struct ip *ip = NULL; + struct tcphdr *th = NULL; + struct tcpcb *tp = NULL; + unsigned int ip_hl = 0; + uint8_t inp_locally_locked = 0; /* * I don't think we need m_pullup here because both @@ -950,12 +950,12 @@ siftr_chkpkt6( void *arg, struct inpcb *inp ) { - register struct pkt_node *pkt_node = NULL; - register struct ip6_hdr *ip6 = NULL; - register struct tcphdr *th = NULL; - register struct tcpcb *tp = NULL; - register unsigned int ip6_hl = 0; - register uint8_t inp_locally_locked = 0; + struct pkt_node *pkt_node = NULL; + struct ip6_hdr *ip6 = NULL; + struct tcphdr *th = NULL; + struct tcpcb *tp = NULL; + unsigned int ip6_hl = 0; + uint8_t inp_locally_locked = 0; /* * I don't think we need m_pullup here because both
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909292300.n8TN0Sjt098329>