From 5f885443699b77018acccb9fff05f7d436f4fbb8 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 15 Aug 2006 11:08:14 +0000 Subject: 2006-08-15 Joel Sherrill * libnetworking/kern/kern_sysctl.c: Change int to int32_t. * libnetworking/net/if_loop.c: Add cast to long. These plus a patch to machine/param.h let the h8300 build multilib. --- cpukit/ChangeLog | 6 ++++++ cpukit/libnetworking/kern/kern_sysctl.c | 2 +- cpukit/libnetworking/net/if_loop.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 6eb21eb186..912af648c8 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +2006-08-15 Joel Sherrill + + * libnetworking/kern/kern_sysctl.c: Change int to int32_t. + * libnetworking/net/if_loop.c: Add cast to long. + These plus a patch to machine/param.h let the h8300 build multilib. + 2006-08-10 Till Straumann * libnetworking/rtems/rtems_mii_ioctl_kern.c: diff --git a/cpukit/libnetworking/kern/kern_sysctl.c b/cpukit/libnetworking/kern/kern_sysctl.c index 6b32c82c6b..6cbf2a12f7 100644 --- a/cpukit/libnetworking/kern/kern_sysctl.c +++ b/cpukit/libnetworking/kern/kern_sysctl.c @@ -146,7 +146,7 @@ sysctl_register_oid(struct sysctl_oid *oidp) * accomodate e.g. net.inet.raw as a static sysctl node. */ if (oidp->oid_number == OID_AUTO) { - static int newoid = CTL_AUTO_START; + static int32_t newoid = CTL_AUTO_START; oidp->oid_number = newoid++; if (newoid == 0x7fffffff) diff --git a/cpukit/libnetworking/net/if_loop.c b/cpukit/libnetworking/net/if_loop.c index c84abd9ded..ab9a7a7506 100644 --- a/cpukit/libnetworking/net/if_loop.c +++ b/cpukit/libnetworking/net/if_loop.c @@ -233,7 +233,7 @@ lortrequest(cmd, rt, sa) * overhead. */ rt->rt_rmx.rmx_recvpipe = - rt->rt_rmx.rmx_sendpipe = 3 * LOMTU; + rt->rt_rmx.rmx_sendpipe = 3L * (long)LOMTU; } } -- cgit v1.2.3