Another modernization of the 'poll' module is to use ANSI C instead of K&R C.


2010-09-28  Bruno Haible  <[email protected]>

        poll: Assume ANSI C.
        * lib/poll.c (poll): Use an ANSI C declaration.

--- lib/poll.c.orig     Wed Sep 29 01:55:18 2010
+++ lib/poll.c  Wed Sep 29 01:52:45 2010
@@ -315,10 +315,7 @@
 #endif /* !MinGW */
 
 int
-poll (pfd, nfd, timeout)
-     struct pollfd *pfd;
-     nfds_t nfd;
-     int timeout;
+poll (struct pollfd *pfd, nfds_t nfd, int timeout)
 {
 #ifndef WIN32_NATIVE
   fd_set rfds, wfds, efds;

Reply via email to