diff options
author | Doug Rabson <dfr@FreeBSD.org> | 1998-06-10 10:30:23 +0000 |
---|---|---|
committer | Doug Rabson <dfr@FreeBSD.org> | 1998-06-10 10:30:23 +0000 |
commit | 2b605d08041460224086019df72448f3304cedb0 (patch) | |
tree | c243f3e3e9de4eefc9209cc062d5ed5cdce095f2 /sys | |
parent | 831b9ef2bedf35aec22cdde8d83e8060a0222003 (diff) | |
download | src-2b605d08041460224086019df72448f3304cedb0.tar.gz src-2b605d08041460224086019df72448f3304cedb0.zip |
64bit fixes: don't cast p->p_retval to an int*.
Notes
Notes:
svn path=/head/; revision=36847
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/uipc_syscalls.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index 286850757242..db764de593a9 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)uipc_syscalls.c 8.4 (Berkeley) 2/21/94 - * $Id: uipc_syscalls.c,v 1.38 1998/04/11 20:31:46 phk Exp $ + * $Id: uipc_syscalls.c,v 1.39 1998/04/14 06:24:43 phk Exp $ */ #include "opt_compat.h" @@ -162,6 +162,7 @@ accept1(p, uap, compat) struct sockaddr *sa; int namelen, error, s; struct socket *head, *so; + int fd; short fflag; /* type must match fp->f_flag */ if (uap->name) { @@ -214,7 +215,7 @@ accept1(p, uap, compat) head->so_qlen--; fflag = fp->f_flag; - error = falloc(p, &fp, p->p_retval); + error = falloc(p, &fp, &fd); if (error) { /* * Probably ran out of file descriptors. Put the @@ -227,7 +228,8 @@ accept1(p, uap, compat) wakeup_one(&head->so_timeo); splx(s); return (error); - } + } else + p->p_retval[0] = fd; so->so_state &= ~SS_COMP; so->so_head = NULL; |