Skip to content

Commit ed10223

Browse files
committed
Fix [-Wstrict-prototypes] in FPM CLI .c files
1 parent 2bf0a27 commit ed10223

File tree

11 files changed

+18
-18
lines changed

11 files changed

+18
-18
lines changed

main/fastcgi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ int fcgi_is_closed(fcgi_request *req)
13201320
return (req->fd < 0);
13211321
}
13221322

1323-
static int fcgi_is_allowed() {
1323+
static int fcgi_is_allowed(void) {
13241324
int i;
13251325

13261326
if (client_sa.sa.sa_family == AF_UNIX) {

sapi/fpm/fpm/events/devpoll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ 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;

sapi/fpm/fpm/events/epoll.c

Lines changed: 2 additions & 2 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,7 +46,7 @@ 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;

sapi/fpm/fpm/events/kqueue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static int kfd = 0;
5252
/*
5353
* Return the module configuration
5454
*/
55-
struct fpm_event_module_s *fpm_event_kqueue_module() /* {{{ */
55+
struct fpm_event_module_s *fpm_event_kqueue_module(void) /* {{{ */
5656
{
5757
#ifdef HAVE_KQUEUE
5858
return &kqueue_module;

sapi/fpm/fpm/events/poll.c

Lines changed: 2 additions & 2 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,7 +50,7 @@ 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;

sapi/fpm/fpm/events/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static int pfd = -1;
4747

4848
#endif /* HAVE_PORT */
4949

50-
struct fpm_event_module_s *fpm_event_port_module() /* {{{ */
50+
struct fpm_event_module_s *fpm_event_port_module(void) /* {{{ */
5151
{
5252
#ifdef HAVE_PORT
5353
return &port_module;

sapi/fpm/fpm/events/select.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ 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;

sapi/fpm/fpm/fpm_children.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static void fpm_children_cleanup(int which, void *arg) /* {{{ */
3838
}
3939
/* }}} */
4040

41-
static struct fpm_child_s *fpm_child_alloc() /* {{{ */
41+
static struct fpm_child_s *fpm_child_alloc(void) /* {{{ */
4242
{
4343
struct fpm_child_s *ret;
4444

sapi/fpm/fpm/fpm_conf.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ static char *fpm_conf_set_array(zval *key, zval *value, void **config, int conve
590590
}
591591
/* }}} */
592592

593-
static void *fpm_worker_pool_config_alloc() /* {{{ */
593+
static void *fpm_worker_pool_config_alloc(void) /* {{{ */
594594
{
595595
struct fpm_worker_pool_s *wp;
596596

@@ -742,7 +742,7 @@ static int fpm_evaluate_full_path(char **path, struct fpm_worker_pool_s *wp, cha
742742
}
743743
/* }}} */
744744

745-
static int fpm_conf_process_all_pools() /* {{{ */
745+
static int fpm_conf_process_all_pools(void) /* {{{ */
746746
{
747747
struct fpm_worker_pool_s *wp, *wp2;
748748

@@ -1597,7 +1597,7 @@ int fpm_conf_load_ini_file(char *filename) /* {{{ */
15971597
}
15981598
/* }}} */
15991599

1600-
static void fpm_conf_dump() /* {{{ */
1600+
static void fpm_conf_dump(void) /* {{{ */
16011601
{
16021602
struct fpm_worker_pool_s *wp;
16031603

sapi/fpm/fpm/fpm_process_ctl.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static int fpm_pctl_timeout_set(int sec) /* {{{ */
6363
}
6464
/* }}} */
6565

66-
static void fpm_pctl_exit() /* {{{ */
66+
static void fpm_pctl_exit(void) /* {{{ */
6767
{
6868
zlog(ZLOG_NOTICE, "exiting, bye-bye!");
6969

@@ -75,7 +75,7 @@ static void fpm_pctl_exit() /* {{{ */
7575

7676
#define optional_arg(c) (saved_argc > c ? ", \"" : ""), (saved_argc > c ? saved_argv[c] : ""), (saved_argc > c ? "\"" : "")
7777

78-
static void fpm_pctl_exec() /* {{{ */
78+
static void fpm_pctl_exec(void) /* {{{ */
7979
{
8080
zlog(ZLOG_DEBUG, "Blocking some signals before reexec");
8181
if (0 > fpm_signals_block()) {
@@ -106,7 +106,7 @@ static void fpm_pctl_exec() /* {{{ */
106106
}
107107
/* }}} */
108108

109-
static void fpm_pctl_action_last() /* {{{ */
109+
static void fpm_pctl_action_last(void) /* {{{ */
110110
{
111111
switch (fpm_state) {
112112
case FPM_PCTL_STATE_RELOADING:
@@ -172,7 +172,7 @@ void fpm_pctl_kill_all(int signo) /* {{{ */
172172
}
173173
/* }}} */
174174

175-
static void fpm_pctl_action_next() /* {{{ */
175+
static void fpm_pctl_action_next(void) /* {{{ */
176176
{
177177
int sig, timeout;
178178

sapi/fpm/fpm/fpm_stdio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ int fpm_stdio_init_main() /* {{{ */
4141
}
4242
/* }}} */
4343

44-
static inline int fpm_use_error_log() { /* {{{ */
44+
static inline int fpm_use_error_log(void) { /* {{{ */
4545
/*
4646
* the error_log is NOT used when running in foreground
4747
* and from a tty (user looking at output).

0 commit comments

Comments
 (0)