Skip to content

Commit 2bf0a27

Browse files
committed
Fix [-Wstrict-prototypes] in FastCGI .c files
1 parent 8e8bc47 commit 2bf0a27

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

main/fastcgi.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ typedef struct _fcgi_hash {
200200
typedef struct _fcgi_req_hook fcgi_req_hook;
201201

202202
struct _fcgi_req_hook {
203-
void(*on_accept)();
204-
void(*on_read)();
205-
void(*on_close)();
203+
void(*on_accept)(void);
204+
void(*on_read)(void);
205+
void(*on_close)(void);
206206
};
207207

208208
struct _fcgi_request {
@@ -871,11 +871,11 @@ void fcgi_set_allowed_clients(char *ip)
871871
}
872872
}
873873

874-
static void fcgi_hook_dummy() {
874+
static void fcgi_hook_dummy(void) {
875875
return;
876876
}
877877

878-
fcgi_request *fcgi_init_request(int listen_socket, void(*on_accept)(), void(*on_read)(), void(*on_close)())
878+
fcgi_request *fcgi_init_request(int listen_socket, void(*on_accept)(void), void(*on_read)(void), void(*on_close)(void))
879879
{
880880
fcgi_request *req = calloc(1, sizeof(fcgi_request));
881881
req->listen_socket = listen_socket;

0 commit comments

Comments
 (0)