error in Event::MakeMaker

[email protected] (( Marc) (A.) (Lehmann ))
Newsgroups perl.loop
Message-ID <[email protected]>
Event::MakeMaker describes a callback like this:

         static void x_server_dispatch(void *ext_data)

However, it is (quite sensibly) being called as:

        (* (void(*)(pe_event*)) ev->callback)(ev);

this is especially bad as callback is a void *, so there is no type
checking.


-- 
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       Marc Lehmann      +--
      --==---/ / _ \/ // /\ \/ /       [email protected]      |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.