From 89c936487278c4567c724b3ec826873f46f72c5a Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 29 Sep 2010 01:56:23 +0200 Subject: [PATCH] poll: Assume ANSI C. * lib/poll.c (poll): Use an ANSI C declaration. --- ChangeLog | 5 +++++ lib/poll.c | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8eba951098..d1553caf63 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-09-28 Bruno Haible + + poll: Assume ANSI C. + * lib/poll.c (poll): Use an ANSI C declaration. + 2010-09-28 Bruno Haible poll-h: Create poll.h on all platforms. diff --git a/lib/poll.c b/lib/poll.c index a001c199a8..ea655806c5 100644 --- a/lib/poll.c +++ b/lib/poll.c @@ -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; -- 2.30.2