Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Dec 1998 08:24:32 +0000
From:      Brian Somers <brian@Awfulhak.org>
To:        Matthew Dillon <dillon@apollo.backplane.com>
Cc:        committers@FreeBSD.ORG
Subject:   Re: best way to fix function mismatch warning 
Message-ID:  <199812140824.IAA00838@keep.lan.Awfulhak.org>
In-Reply-To: Your message of "Sun, 13 Dec 1998 21:16:43 PST." <199812140516.VAA25033@apollo.backplane.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
>     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.
>     <dillon@backplane.com> (Please include original email in any response)    
[.....]
-- 
Brian <brian@Awfulhak.org> <brian@FreeBSD.org> <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812140824.IAA00838>