diff options
Diffstat (limited to 'c/src/libnetworking/kern')
-rw-r--r-- | c/src/libnetworking/kern/uipc_domain.c | 4 | ||||
-rw-r--r-- | c/src/libnetworking/kern/uipc_socket.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/c/src/libnetworking/kern/uipc_domain.c b/c/src/libnetworking/kern/uipc_domain.c index b35c7e6e67..910007395c 100644 --- a/c/src/libnetworking/kern/uipc_domain.c +++ b/c/src/libnetworking/kern/uipc_domain.c @@ -56,6 +56,7 @@ * passed to the doamin_add() function. */ +#if !defined(__rtems__) static int x_save_spl; /* used by kludge*/ static void kludge_splimp __P((void *)); static void kludge_splx __P((void *)); @@ -63,6 +64,7 @@ static void kludge_splx __P((void *)); SYSINIT(splimp, SI_SUB_PROTO_BEGIN, SI_ORDER_FIRST, kludge_splimp, &x_save_spl) SYSINIT(domain, SI_SUB_PROTO_DOMAIN, SI_ORDER_FIRST, domaininit, NULL) SYSINIT(splx, SI_SUB_PROTO_END, SI_ORDER_FIRST, kludge_splx, &x_save_spl) +#endif static void pffasttimo __P((void *)); static void pfslowtimo __P((void *)); @@ -81,7 +83,7 @@ void domaininit(dummy) void *dummy; { - register struct domain *dp, **dpp; + register struct domain *dp; register struct protosw *pr; /* - not in our sources diff --git a/c/src/libnetworking/kern/uipc_socket.c b/c/src/libnetworking/kern/uipc_socket.c index 0933fea50a..895d1c7d45 100644 --- a/c/src/libnetworking/kern/uipc_socket.c +++ b/c/src/libnetworking/kern/uipc_socket.c @@ -350,7 +350,7 @@ sosend(so, addr, uio, top, control, flags) * Also check to make sure that MSG_EOR isn't used on SOCK_STREAM * type sockets since that's an error. */ - if (resid < 0 || so->so_type == SOCK_STREAM && (flags & MSG_EOR)) { + if ((resid < 0) || (so->so_type == SOCK_STREAM && (flags & MSG_EOR))) { error = EINVAL; goto out; } |