From owner-freebsd-standards@FreeBSD.ORG Sat Apr 3 11:49:03 2004 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3099516A4CE for ; Sat, 3 Apr 2004 11:49:03 -0800 (PST) Received: from VARK.homeunix.com (adsl-69-104-80-69.dsl.pltn13.pacbell.net [69.104.80.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00F8243D45 for ; Sat, 3 Apr 2004 11:49:03 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: from VARK.homeunix.com (localhost [127.0.0.1]) by VARK.homeunix.com (8.12.11/8.12.10) with ESMTP id i33JmHM5021929; Sat, 3 Apr 2004 11:48:17 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.homeunix.com (8.12.11/8.12.10/Submit) id i33JmHXh021928; Sat, 3 Apr 2004 11:48:17 -0800 (PST) (envelope-from das@FreeBSD.ORG) Date: Sat, 3 Apr 2004 11:48:17 -0800 From: David Schultz To: Eric De la Cruz Lugo Message-ID: <20040403194817.GA21844@VARK.homeunix.com> Mail-Followup-To: Eric De la Cruz Lugo , freebsd-standards@FreeBSD.ORG References: <1080397817.40658ff979c2e@iteso.mx> <20040328231756.GA86437@VARK.homeunix.com> <1081013624.406ef5788b3a1@iteso.mx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1081013624.406ef5788b3a1@iteso.mx> cc: freebsd-standards@FreeBSD.ORG Subject: Re: i386_get_ioperm syntax.... X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Apr 2004 19:49:03 -0000 On Sat, Apr 03, 2004, Eric De la Cruz Lugo wrote: > callbacks.cc: In member function `int CPost::DeviceControl(int, int)': > callbacks.cc:160: error: invalid conversion from `int' to `unsigned int*' > callbacks.cc:160: error: invalid conversion from `int' to `int*' > callbacks.cc:163: error: invalid conversion from `int' to `unsigned int*' [...] > the relevant lines are : > > else if(flags==5){ > return i386_get_ioperm(0x3F8, 6, 1); > } > else if(flags==6){ > return i386_get_ioperm(0x3F8, 6, 0); > } I'm not sure why this was addressed specifically to me, but your problem is that the second and third parameters to i386_get_ioperm() are supposed to be *pointers* to integers. Note that i386_get_ioperm() is supposed to tell *you* what the port permission bits are, not the other way around. I suggest you take a look at the manual page more carefully. Also, I don't have anything to do with i386_get_ioperm(), and standards@ is not the appropriate list for this kind of inquiry. Please try questions@ next time. --David