poll: Assume ANSI C.
authorBruno Haible <bruno@clisp.org>
Tue, 28 Sep 2010 23:56:23 +0000 (01:56 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 28 Sep 2010 23:56:23 +0000 (01:56 +0200)
* lib/poll.c (poll): Use an ANSI C declaration.

ChangeLog
lib/poll.c

index 8eba951..d1553ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-09-28  Bruno Haible  <bruno@clisp.org>
 
+       poll: Assume ANSI C.
+       * lib/poll.c (poll): Use an ANSI C declaration.
+
+2010-09-28  Bruno Haible  <bruno@clisp.org>
+
        poll-h: Create poll.h on all platforms.
        * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
        struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
index a001c19..ea65580 100644 (file)
@@ -315,10 +315,7 @@ compute_revents (int fd, int sought, fd_set *rfds, fd_set *wfds, fd_set *efds)
 #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;