From owner-freebsd-standards@FreeBSD.ORG Sun Apr 4 09:38:20 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 7E71A16A4CE; Sun, 4 Apr 2004 09:38:20 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2726143D55; Sun, 4 Apr 2004 09:38:20 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i34GcH0a028185; Sun, 4 Apr 2004 11:38:17 -0500 (CDT) (envelope-from dan) Date: Sun, 4 Apr 2004 11:38:17 -0500 From: Dan Nelson To: Eric De la Cruz Lugo Message-ID: <20040404163817.GA24660@dan.emsphone.com> 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> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: David Schultz 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: Sun, 04 Apr 2004 16:38:20 -0000 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