i386_get_ioperm syntax....
Dan Nelson
dnelson at allantgroup.com
Sun Apr 4 09:38:20 PDT 2004
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 at allantgroup.com
More information about the freebsd-standards
mailing list