From 2b9f4ca12d0ac33aa61aed3643d8cf27a7291489 Mon Sep 17 00:00:00 2001 From: cgd Date: Thu, 29 Apr 1999 17:34:49 +0000 Subject: [PATCH] in NetBSD, top 32 bits of ioctl com are always 0 --- sys/compat/osf1/osf1_ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/compat/osf1/osf1_ioctl.c b/sys/compat/osf1/osf1_ioctl.c index cb8834c81ead..f0baa3ec7d08 100644 --- a/sys/compat/osf1/osf1_ioctl.c +++ b/sys/compat/osf1/osf1_ioctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: osf1_ioctl.c,v 1.9 1999/04/28 02:16:07 cgd Exp $ */ +/* $NetBSD: osf1_ioctl.c,v 1.10 1999/04/29 17:34:49 cgd Exp $ */ /* * Copyright (c) 1999 Christopher G. Demetriou. All rights reserved. @@ -136,7 +136,7 @@ osf1_sys_ioctl(p, v, retval) #endif SCARG(&a, fd) = SCARG(uap, fd); - SCARG(&a, com) = SCARG(uap, com); + SCARG(&a, com) = SCARG(uap, com) & 0xffffffff; /* XXX */ SCARG(&a, data) = SCARG(uap, data); switch (group) { case 'f':