summaryrefslogtreecommitdiffstats
path: root/sys/netipx/ipx_input.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-05-11 10:38:34 +0000
committerrwatson <rwatson@FreeBSD.org>2007-05-11 10:38:34 +0000
commit972aaf598c3dd94b766cd860a8efda7dc734015b (patch)
tree8e5e97cc8785819d97ecc4c18c4d4651c9971f1b /sys/netipx/ipx_input.c
parent47d37a80be0931ad72e67db6ba915221afdfeb4f (diff)
downloadFreeBSD-src-972aaf598c3dd94b766cd860a8efda7dc734015b.zip
FreeBSD-src-972aaf598c3dd94b766cd860a8efda7dc734015b.tar.gz
Use ANSI C function declarations throughout netipx.
Remove 'register' use.
Diffstat (limited to 'sys/netipx/ipx_input.c')
-rw-r--r--sys/netipx/ipx_input.c34
1 files changed, 15 insertions, 19 deletions
diff --git a/sys/netipx/ipx_input.c b/sys/netipx/ipx_input.c
index 166ffde..e57586c 100644
--- a/sys/netipx/ipx_input.c
+++ b/sys/netipx/ipx_input.c
@@ -134,7 +134,7 @@ static void ipxintr(struct mbuf *m);
*/
void
-ipx_init()
+ipx_init(void)
{
read_random(&ipx_pexseq, sizeof ipx_pexseq);
@@ -162,8 +162,8 @@ ipx_init()
static void
ipxintr(struct mbuf *m)
{
- register struct ipx *ipx;
- register struct ipxpcb *ipxp;
+ struct ipx *ipx;
+ struct ipxpcb *ipxp;
struct ipx_ifaddr *ia;
int len;
@@ -334,11 +334,10 @@ static struct route ipx_droute;
static struct route ipx_sroute;
static void
-ipx_forward(m)
-struct mbuf *m;
+ipx_forward(struct mbuf *m)
{
- register struct ipx *ipx = mtod(m, struct ipx *);
- register int error;
+ struct ipx *ipx = mtod(m, struct ipx *);
+ int error;
int agedelta = 1;
int flags = IPX_FORWARDING;
int ok_there = 0;
@@ -424,9 +423,7 @@ cleanup:
}
static int
-ipx_do_route(src, ro)
-struct ipx_addr *src;
-struct route *ro;
+ipx_do_route(struct ipx_addr *src, struct route *ro)
{
struct sockaddr_ipx *dst;
@@ -446,9 +443,9 @@ struct route *ro;
}
static void
-ipx_undo_route(ro)
-register struct route *ro;
+ipx_undo_route(struct route *ro)
{
+
if (ro->ro_rt != NULL) {
RTFREE(ro->ro_rt);
}
@@ -459,13 +456,12 @@ register struct route *ro;
* back into the socket code from the IPX output path.
*/
void
-ipx_watch_output(m, ifp)
-struct mbuf *m;
-struct ifnet *ifp;
+ipx_watch_output(struct mbuf *m, struct ifnet *ifp)
{
- register struct ipxpcb *ipxp;
- register struct ifaddr *ifa;
- register struct ipx_ifaddr *ia;
+ struct ipxpcb *ipxp;
+ struct ifaddr *ifa;
+ struct ipx_ifaddr *ia;
+
/*
* Give any raw listeners a crack at the packet
*/
@@ -473,7 +469,7 @@ struct ifnet *ifp;
LIST_FOREACH(ipxp, &ipxrawpcb_list, ipxp_list) {
struct mbuf *m0 = m_copy(m, 0, (int)M_COPYALL);
if (m0 != NULL) {
- register struct ipx *ipx;
+ struct ipx *ipx;
M_PREPEND(m0, sizeof(*ipx), M_DONTWAIT);
if (m0 == NULL)
OpenPOWER on IntegriCloud