Skip to content

Commit e2a5428

Browse files
committed
FPM fix strict prototype warnings.
Closes GH-8986.
1 parent f866295 commit e2a5428

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+116
-184
lines changed

sapi/fpm/fpm/events/devpoll.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <errno.h>
3030

3131
static int fpm_event_devpoll_init(int max);
32-
static int fpm_event_devpoll_clean();
32+
static int fpm_event_devpoll_clean(void);
3333
static int fpm_event_devpoll_wait(struct fpm_event_queue_s *queue, unsigned long int timeout);
3434
static int fpm_event_devpoll_add(struct fpm_event_s *ev);
3535
static int fpm_event_devpoll_remove(struct fpm_event_s *ev);
@@ -51,15 +51,14 @@ static int npollfds = 0;
5151

5252
#endif /* HAVE_DEVPOLL */
5353

54-
struct fpm_event_module_s *fpm_event_devpoll_module() /* {{{ */
54+
struct fpm_event_module_s *fpm_event_devpoll_module(void)
5555
{
5656
#ifdef HAVE_DEVPOLL
5757
return &devpoll_module;
5858
#else
5959
return NULL;
6060
#endif /* HAVE_DEVPOLL */
6161
}
62-
/* }}} */
6362

6463
#ifdef HAVE_DEVPOLL
6564

@@ -113,7 +112,7 @@ static int fpm_event_devpoll_init(int max) /* {{{ */
113112
/*
114113
* Clean the module
115114
*/
116-
static int fpm_event_devpoll_clean() /* {{{ */
115+
static int fpm_event_devpoll_clean(void)
117116
{
118117
/* close /dev/poll if open */
119118
if (dpfd > -1) {
@@ -136,7 +135,6 @@ static int fpm_event_devpoll_clean() /* {{{ */
136135
npollfds = 0;
137136
return 0;
138137
}
139-
/* }}} */
140138

141139
/*
142140
* wait for events or timeout

sapi/fpm/fpm/events/devpoll.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
#include "../fpm_config.h"
2121
#include "../fpm_events.h"
2222

23-
struct fpm_event_module_s *fpm_event_devpoll_module();
23+
struct fpm_event_module_s *fpm_event_devpoll_module(void);
2424

2525
#endif /* FPM_EVENTS_DEVPOLL_H */

sapi/fpm/fpm/events/epoll.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <errno.h>
2626

2727
static int fpm_event_epoll_init(int max);
28-
static int fpm_event_epoll_clean();
28+
static int fpm_event_epoll_clean(void);
2929
static int fpm_event_epoll_wait(struct fpm_event_queue_s *queue, unsigned long int timeout);
3030
static int fpm_event_epoll_add(struct fpm_event_s *ev);
3131
static int fpm_event_epoll_remove(struct fpm_event_s *ev);
@@ -46,15 +46,14 @@ static int epollfd = -1;
4646

4747
#endif /* HAVE_EPOLL */
4848

49-
struct fpm_event_module_s *fpm_event_epoll_module() /* {{{ */
49+
struct fpm_event_module_s *fpm_event_epoll_module(void)
5050
{
5151
#ifdef HAVE_EPOLL
5252
return &epoll_module;
5353
#else
5454
return NULL;
5555
#endif /* HAVE_EPOLL */
5656
}
57-
/* }}} */
5857

5958
#ifdef HAVE_EPOLL
6059

@@ -92,7 +91,7 @@ static int fpm_event_epoll_init(int max) /* {{{ */
9291
/*
9392
* Clean the module
9493
*/
95-
static int fpm_event_epoll_clean() /* {{{ */
94+
static int fpm_event_epoll_clean(void)
9695
{
9796
/* free epollfds */
9897
if (epollfds) {
@@ -108,7 +107,6 @@ static int fpm_event_epoll_clean() /* {{{ */
108107

109108
return 0;
110109
}
111-
/* }}} */
112110

113111
/*
114112
* wait for events or timeout

sapi/fpm/fpm/events/epoll.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
#include "../fpm_config.h"
2121
#include "../fpm_events.h"
2222

23-
struct fpm_event_module_s *fpm_event_epoll_module();
23+
struct fpm_event_module_s *fpm_event_epoll_module(void);
2424

2525
#endif /* FPM_EVENTS_EPOLL_H */

sapi/fpm/fpm/events/poll.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <string.h>
2727

2828
static int fpm_event_poll_init(int max);
29-
static int fpm_event_poll_clean();
29+
static int fpm_event_poll_clean(void);
3030
static int fpm_event_poll_wait(struct fpm_event_queue_s *queue, unsigned long int timeout);
3131
static int fpm_event_poll_add(struct fpm_event_s *ev);
3232
static int fpm_event_poll_remove(struct fpm_event_s *ev);
@@ -50,22 +50,21 @@ static int next_free_slot = 0;
5050
/*
5151
* return the module configuration
5252
*/
53-
struct fpm_event_module_s *fpm_event_poll_module() /* {{{ */
53+
struct fpm_event_module_s *fpm_event_poll_module(void)
5454
{
5555
#ifdef HAVE_POLL
5656
return &poll_module;
5757
#else
5858
return NULL;
5959
#endif /* HAVE_POLL */
6060
}
61-
/* }}} */
6261

6362
#ifdef HAVE_POLL
6463

6564
/*
6665
* Init the module
6766
*/
68-
static int fpm_event_poll_init(int max) /* {{{ */
67+
static int fpm_event_poll_init(int max)
6968
{
7069
int i;
7170

@@ -99,12 +98,11 @@ static int fpm_event_poll_init(int max) /* {{{ */
9998
npollfds = max;
10099
return 0;
101100
}
102-
/* }}} */
103101

104102
/*
105103
* Clean the module
106104
*/
107-
static int fpm_event_poll_clean() /* {{{ */
105+
static int fpm_event_poll_clean(void)
108106
{
109107
/* free pollfds */
110108
if (pollfds) {
@@ -121,7 +119,6 @@ static int fpm_event_poll_clean() /* {{{ */
121119
npollfds = 0;
122120
return 0;
123121
}
124-
/* }}} */
125122

126123
/*
127124
* wait for events or timeout

sapi/fpm/fpm/events/poll.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
#include "../fpm_config.h"
2121
#include "../fpm_events.h"
2222

23-
struct fpm_event_module_s *fpm_event_poll_module();
23+
struct fpm_event_module_s *fpm_event_poll_module(void);
2424

2525
#endif /* FPM_EVENTS_POLL_H */

sapi/fpm/fpm/events/port.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <errno.h>
2727

2828
static int fpm_event_port_init(int max);
29-
static int fpm_event_port_clean();
29+
static int fpm_event_port_clean(void);
3030
static int fpm_event_port_wait(struct fpm_event_queue_s *queue, unsigned long int timeout);
3131
static int fpm_event_port_add(struct fpm_event_s *ev);
3232
static int fpm_event_port_remove(struct fpm_event_s *ev);
@@ -90,7 +90,7 @@ static int fpm_event_port_init(int max) /* {{{ */
9090
/*
9191
* Clean the module
9292
*/
93-
static int fpm_event_port_clean() /* {{{ */
93+
static int fpm_event_port_clean(void)
9494
{
9595
if (pfd > -1) {
9696
close(pfd);
@@ -105,7 +105,6 @@ static int fpm_event_port_clean() /* {{{ */
105105
nevents = 0;
106106
return 0;
107107
}
108-
/* }}} */
109108

110109
/*
111110
* wait for events or timeout

sapi/fpm/fpm/events/port.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
#include "../fpm_config.h"
2121
#include "../fpm_events.h"
2222

23-
struct fpm_event_module_s *fpm_event_port_module();
23+
struct fpm_event_module_s *fpm_event_port_module(void);
2424

2525
#endif /* FPM_EVENTS_PORT_H */

sapi/fpm/fpm/events/select.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,14 @@ static fd_set fds;
5353
/*
5454
* return the module configuration
5555
*/
56-
struct fpm_event_module_s *fpm_event_select_module() /* {{{ */
56+
struct fpm_event_module_s *fpm_event_select_module(void)
5757
{
5858
#ifdef HAVE_SELECT
5959
return &select_module;
6060
#else
6161
return NULL;
6262
#endif /* HAVE_SELECT */
6363
}
64-
/* }}} */
6564

6665
#ifdef HAVE_SELECT
6766

sapi/fpm/fpm/events/select.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
#include "../fpm_config.h"
2121
#include "../fpm_events.h"
2222

23-
struct fpm_event_module_s *fpm_event_select_module();
23+
struct fpm_event_module_s *fpm_event_select_module(void);
2424

2525
#endif /* FPM_EVENTS_SELECT_H */

0 commit comments

Comments
 (0)