Date: Sat, 3 Apr 2004 11:48:17 -0800 From: David Schultz <das@FreeBSD.ORG> To: Eric De la Cruz Lugo <eric@iteso.mx> Cc: freebsd-standards@FreeBSD.ORG Subject: Re: i386_get_ioperm syntax.... Message-ID: <20040403194817.GA21844@VARK.homeunix.com> In-Reply-To: <1081013624.406ef5788b3a1@iteso.mx> References: <1080397817.40658ff979c2e@iteso.mx> <20040328231756.GA86437@VARK.homeunix.com> <1081013624.406ef5788b3a1@iteso.mx>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040403194817.GA21844>