Fix a messed up patch
This commit is contained in:
parent
88a5eb33ed
commit
2cac35470c
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_pipe.c,v 1.55 2005/11/04 16:52:51 manu Exp $ */
|
||||
/* $NetBSD: linux_pipe.c,v 1.56 2005/11/05 00:58:57 manu Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_pipe.c,v 1.55 2005/11/04 16:52:51 manu Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_pipe.c,v 1.56 2005/11/05 00:58:57 manu Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -82,21 +82,9 @@ linux_sys_pipe(l, v, retval)
|
|||
return error;
|
||||
|
||||
#ifndef __amd64__
|
||||
#ifdef __amd64__
|
||||
{
|
||||
int pfds[2];
|
||||
|
||||
pfds[0] = (int)retval[0];
|
||||
pfds[1] = (int)retval[1];
|
||||
|
||||
if ((error = copyout(pfds, SCARG(uap, pfds), sizeof(pfds))))
|
||||
return error;
|
||||
}
|
||||
#else
|
||||
/* Assumes register_t is an int */
|
||||
if ((error = copyout(retval, SCARG(uap, pfds), 2 * sizeof (int))))
|
||||
return error;
|
||||
#endif
|
||||
#else
|
||||
/* On amd64, sizeof(register_t) != sizeof(int) */
|
||||
pfds[0] = (int)retval[0];
|
||||
|
|
Loading…
Reference in New Issue