Date: Sun, 4 Apr 2004 11:38:17 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Eric De la Cruz Lugo <eric@iteso.mx> Cc: freebsd-standards@freebsd.org Subject: Re: i386_get_ioperm syntax.... Message-ID: <20040404163817.GA24660@dan.emsphone.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
In the last episode (Apr 03), Eric De la Cruz Lugo said: > terra# make > make all-recursive > Making all in m4 > Making all in src > if g++ -DREENTRANT -I. -I. -I.. -O6 -I/usr/include/bhpos -O6 -I/usr/ > include/bhpos -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/ > lib/gtkmm/include -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/ > usr/X11R6/include -I/usr/local/include/sigc++-1.0 -I/usr/include/bhpos/hw > -I/usr/include/bhpos/widget -g -O2 -MT callbacks.o -MD -MP -MF ".deps/ > callbacks.Tpo" -c -o callbacks.o `test -f 'callbacks.cc' || echo > './'`callbacks.cc; then mv ".deps/callbacks.Tpo" ".deps/callbacks.Po"; else > rm -f ".deps/callbacks.Tpo"; exit 1; fi > 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); > } int i386_get_ioperm(unsigned int start, unsigned int *length, int *enable); The 2nd two arguments are pointers to ints. -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040404163817.GA24660>