From owner-cvs-all Mon Dec 14 11:24:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA29148 for cvs-all-outgoing; Mon, 14 Dec 1998 11:24:11 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA29140 for ; Mon, 14 Dec 1998 11:24:07 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id TAA21313; Mon, 14 Dec 1998 19:24:02 GMT (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.1/8.9.1) with ESMTP id IAA00838; Mon, 14 Dec 1998 08:24:32 GMT (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199812140824.IAA00838@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Matthew Dillon cc: committers@FreeBSD.ORG Subject: Re: best way to fix function mismatch warning In-reply-to: Your message of "Sun, 13 Dec 1998 21:16:43 PST." <199812140516.VAA25033@apollo.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 14 Dec 1998 08:24:32 +0000 From: Brian Somers Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > This warning occurs because the vxintr function does not match the > function type expected by pci_map_int. That is, because pci_map_int > expects a void func(void *) function and vxintr is a > void func(struct softc *). > > So, to get rid of the warning do we (a) cast the function pointer > in the pci_map_int() call to the correct type or (b) make the function > (in dev/vx/*) take a void * and then reassign the variable to a pointer > of the right type inside it? Or (c) some other choice that I haven't > thought of ? (a) as there's no overhead.... alternatively, you could try (c) ;-) > -Matt > > Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet > Communications & God knows what else. > (Please include original email in any response) [.....] -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message