Feature #2437 » 0002-Fix-non-ANSI-function-declarations.patch
src/configfile.c | ||
---|---|---|
1000 | 1000 |
return ret; |
1001 | 1001 |
} |
1002 | 1002 | |
1003 |
static char* getCWD() { |
|
1003 |
static char* getCWD(void) {
|
|
1004 | 1004 |
char *s, *s1; |
1005 | 1005 |
size_t len; |
1006 | 1006 |
#ifdef PATH_MAX |
src/fdevent.c | ||
---|---|---|
100 | 100 |
return 0; |
101 | 101 |
} |
102 | 102 | |
103 |
static fdnode *fdnode_init() { |
|
103 |
static fdnode *fdnode_init(void) {
|
|
104 | 104 |
fdnode *fdn; |
105 | 105 | |
106 | 106 |
fdn = calloc(1, sizeof(*fdn)); |
src/mod_cgi.c | ||
---|---|---|
82 | 82 |
buffer *response_header; |
83 | 83 |
} handler_ctx; |
84 | 84 | |
85 |
static handler_ctx * cgi_handler_ctx_init() { |
|
85 |
static handler_ctx * cgi_handler_ctx_init(void) {
|
|
86 | 86 |
handler_ctx *hctx = calloc(1, sizeof(*hctx)); |
87 | 87 | |
88 | 88 |
assert(hctx); |
src/mod_fastcgi.c | ||
---|---|---|
483 | 483 |
return 0; |
484 | 484 |
} |
485 | 485 | |
486 |
static handler_ctx * handler_ctx_init() { |
|
486 |
static handler_ctx * handler_ctx_init(void) {
|
|
487 | 487 |
handler_ctx * hctx; |
488 | 488 | |
489 | 489 |
hctx = calloc(1, sizeof(*hctx)); |
... | ... | |
521 | 521 |
free(hctx); |
522 | 522 |
} |
523 | 523 | |
524 |
static fcgi_proc *fastcgi_process_init() { |
|
524 |
static fcgi_proc *fastcgi_process_init(void) {
|
|
525 | 525 |
fcgi_proc *f; |
526 | 526 | |
527 | 527 |
f = calloc(1, sizeof(*f)); |
... | ... | |
545 | 545 |
free(f); |
546 | 546 |
} |
547 | 547 | |
548 |
static fcgi_extension_host *fastcgi_host_init() { |
|
548 |
static fcgi_extension_host *fastcgi_host_init(void) {
|
|
549 | 549 |
fcgi_extension_host *f; |
550 | 550 | |
551 | 551 |
f = calloc(1, sizeof(*f)); |
... | ... | |
581 | 581 | |
582 | 582 |
} |
583 | 583 | |
584 |
static fcgi_exts *fastcgi_extensions_init() { |
|
584 |
static fcgi_exts *fastcgi_extensions_init(void) {
|
|
585 | 585 |
fcgi_exts *f; |
586 | 586 | |
587 | 587 |
f = calloc(1, sizeof(*f)); |
src/mod_proxy.c | ||
---|---|---|
115 | 115 |
/* ok, we need a prototype */ |
116 | 116 |
static handler_t proxy_handle_fdevent(server *srv, void *ctx, int revents); |
117 | 117 | |
118 |
static handler_ctx * handler_ctx_init() { |
|
118 |
static handler_ctx * handler_ctx_init(void) {
|
|
119 | 119 |
handler_ctx * hctx; |
120 | 120 | |
121 | 121 |
src/mod_rewrite.c | ||
---|---|---|
45 | 45 |
plugin_config conf; |
46 | 46 |
} plugin_data; |
47 | 47 | |
48 |
static handler_ctx * handler_ctx_init() { |
|
48 |
static handler_ctx * handler_ctx_init(void) {
|
|
49 | 49 |
handler_ctx * hctx; |
50 | 50 | |
51 | 51 |
hctx = calloc(1, sizeof(*hctx)); |
src/mod_scgi.c | ||
---|---|---|
347 | 347 |
signal(SIGUSR1, SIG_DFL); |
348 | 348 |
} |
349 | 349 | |
350 |
static handler_ctx * handler_ctx_init() { |
|
350 |
static handler_ctx * handler_ctx_init(void) {
|
|
351 | 351 |
handler_ctx * hctx; |
352 | 352 | |
353 | 353 |
hctx = calloc(1, sizeof(*hctx)); |
... | ... | |
388 | 388 |
free(hctx); |
389 | 389 |
} |
390 | 390 | |
391 |
static scgi_proc *scgi_process_init() { |
|
391 |
static scgi_proc *scgi_process_init(void) {
|
|
392 | 392 |
scgi_proc *f; |
393 | 393 | |
394 | 394 |
f = calloc(1, sizeof(*f)); |
... | ... | |
410 | 410 |
free(f); |
411 | 411 |
} |
412 | 412 | |
413 |
static scgi_extension_host *scgi_host_init() { |
|
413 |
static scgi_extension_host *scgi_host_init(void) {
|
|
414 | 414 |
scgi_extension_host *f; |
415 | 415 | |
416 | 416 |
f = calloc(1, sizeof(*f)); |
... | ... | |
442 | 442 | |
443 | 443 |
} |
444 | 444 | |
445 |
static scgi_exts *scgi_extensions_init() { |
|
445 |
static scgi_exts *scgi_extensions_init(void) {
|
|
446 | 446 |
scgi_exts *f; |
447 | 447 | |
448 | 448 |
f = calloc(1, sizeof(*f)); |
src/mod_setenv.c | ||
---|---|---|
30 | 30 |
plugin_config conf; |
31 | 31 |
} plugin_data; |
32 | 32 | |
33 |
static handler_ctx * handler_ctx_init() { |
|
33 |
static handler_ctx * handler_ctx_init(void) {
|
|
34 | 34 |
handler_ctx * hctx; |
35 | 35 | |
36 | 36 |
hctx = calloc(1, sizeof(*hctx)); |
src/mod_ssi_expr.c | ||
---|---|---|
19 | 19 |
int in_cond; |
20 | 20 |
} ssi_tokenizer_t; |
21 | 21 | |
22 |
ssi_val_t *ssi_val_init() { |
|
22 |
ssi_val_t *ssi_val_init(void) {
|
|
23 | 23 |
ssi_val_t *s; |
24 | 24 | |
25 | 25 |
s = calloc(1, sizeof(*s)); |
src/proc_open.c | ||
---|---|---|
331 | 331 | |
332 | 332 |
/* {{{ test */ |
333 | 333 |
#ifdef DEBUG_PROC_OPEN |
334 |
int main() { |
|
334 |
int main(void) {
|
|
335 | 335 |
proc_handler_t proc; |
336 | 336 |
buffer *in = buffer_init(), *out = buffer_init(), *err = buffer_init(); |
337 | 337 |
int wstatus; |
src/server.c | ||
---|---|---|
68 | 68 |
#ifdef HAVE_GETUID |
69 | 69 |
# ifndef HAVE_ISSETUGID |
70 | 70 | |
71 |
static int l_issetugid() { |
|
71 |
static int l_issetugid(void) {
|
|
72 | 72 |
return (geteuid() != getuid() || getegid() != getgid()); |
73 | 73 |
} |
74 | 74 |
tests/fcgi-auth.c | ||
---|---|---|
10 | 10 |
#include <unistd.h> |
11 | 11 |
#include <string.h> |
12 | 12 | |
13 |
int main () { |
|
13 |
int main (void) {
|
|
14 | 14 |
char* p; |
15 | 15 | |
16 | 16 |
while (FCGI_Accept() >= 0) { |
tests/fcgi-responder.c | ||
---|---|---|
10 | 10 |
#include <unistd.h> |
11 | 11 |
#include <string.h> |
12 | 12 | |
13 |
int main () { |
|
13 |
int main (void) {
|
|
14 | 14 |
int num_requests = 2; |
15 | 15 | |
16 | 16 |
while (num_requests > 0 && |