Feature #2437 » 0002-Fix-non-ANSI-function-declarations.patch
src/configfile.c | ||
---|---|---|
return ret;
|
||
}
|
||
static char* getCWD() {
|
||
static char* getCWD(void) {
|
||
char *s, *s1;
|
||
size_t len;
|
||
#ifdef PATH_MAX
|
src/fdevent.c | ||
---|---|---|
return 0;
|
||
}
|
||
static fdnode *fdnode_init() {
|
||
static fdnode *fdnode_init(void) {
|
||
fdnode *fdn;
|
||
fdn = calloc(1, sizeof(*fdn));
|
src/mod_cgi.c | ||
---|---|---|
buffer *response_header;
|
||
} handler_ctx;
|
||
static handler_ctx * cgi_handler_ctx_init() {
|
||
static handler_ctx * cgi_handler_ctx_init(void) {
|
||
handler_ctx *hctx = calloc(1, sizeof(*hctx));
|
||
assert(hctx);
|
src/mod_fastcgi.c | ||
---|---|---|
return 0;
|
||
}
|
||
static handler_ctx * handler_ctx_init() {
|
||
static handler_ctx * handler_ctx_init(void) {
|
||
handler_ctx * hctx;
|
||
hctx = calloc(1, sizeof(*hctx));
|
||
... | ... | |
free(hctx);
|
||
}
|
||
static fcgi_proc *fastcgi_process_init() {
|
||
static fcgi_proc *fastcgi_process_init(void) {
|
||
fcgi_proc *f;
|
||
f = calloc(1, sizeof(*f));
|
||
... | ... | |
free(f);
|
||
}
|
||
static fcgi_extension_host *fastcgi_host_init() {
|
||
static fcgi_extension_host *fastcgi_host_init(void) {
|
||
fcgi_extension_host *f;
|
||
f = calloc(1, sizeof(*f));
|
||
... | ... | |
}
|
||
static fcgi_exts *fastcgi_extensions_init() {
|
||
static fcgi_exts *fastcgi_extensions_init(void) {
|
||
fcgi_exts *f;
|
||
f = calloc(1, sizeof(*f));
|
src/mod_proxy.c | ||
---|---|---|
/* ok, we need a prototype */
|
||
static handler_t proxy_handle_fdevent(server *srv, void *ctx, int revents);
|
||
static handler_ctx * handler_ctx_init() {
|
||
static handler_ctx * handler_ctx_init(void) {
|
||
handler_ctx * hctx;
|
||
src/mod_rewrite.c | ||
---|---|---|
plugin_config conf;
|
||
} plugin_data;
|
||
static handler_ctx * handler_ctx_init() {
|
||
static handler_ctx * handler_ctx_init(void) {
|
||
handler_ctx * hctx;
|
||
hctx = calloc(1, sizeof(*hctx));
|
src/mod_scgi.c | ||
---|---|---|
signal(SIGUSR1, SIG_DFL);
|
||
}
|
||
static handler_ctx * handler_ctx_init() {
|
||
static handler_ctx * handler_ctx_init(void) {
|
||
handler_ctx * hctx;
|
||
hctx = calloc(1, sizeof(*hctx));
|
||
... | ... | |
free(hctx);
|
||
}
|
||
static scgi_proc *scgi_process_init() {
|
||
static scgi_proc *scgi_process_init(void) {
|
||
scgi_proc *f;
|
||
f = calloc(1, sizeof(*f));
|
||
... | ... | |
free(f);
|
||
}
|
||
static scgi_extension_host *scgi_host_init() {
|
||
static scgi_extension_host *scgi_host_init(void) {
|
||
scgi_extension_host *f;
|
||
f = calloc(1, sizeof(*f));
|
||
... | ... | |
}
|
||
static scgi_exts *scgi_extensions_init() {
|
||
static scgi_exts *scgi_extensions_init(void) {
|
||
scgi_exts *f;
|
||
f = calloc(1, sizeof(*f));
|
src/mod_setenv.c | ||
---|---|---|
plugin_config conf;
|
||
} plugin_data;
|
||
static handler_ctx * handler_ctx_init() {
|
||
static handler_ctx * handler_ctx_init(void) {
|
||
handler_ctx * hctx;
|
||
hctx = calloc(1, sizeof(*hctx));
|
src/mod_ssi_expr.c | ||
---|---|---|
int in_cond;
|
||
} ssi_tokenizer_t;
|
||
ssi_val_t *ssi_val_init() {
|
||
ssi_val_t *ssi_val_init(void) {
|
||
ssi_val_t *s;
|
||
s = calloc(1, sizeof(*s));
|
src/proc_open.c | ||
---|---|---|
/* {{{ test */
|
||
#ifdef DEBUG_PROC_OPEN
|
||
int main() {
|
||
int main(void) {
|
||
proc_handler_t proc;
|
||
buffer *in = buffer_init(), *out = buffer_init(), *err = buffer_init();
|
||
int wstatus;
|
src/server.c | ||
---|---|---|
#ifdef HAVE_GETUID
|
||
# ifndef HAVE_ISSETUGID
|
||
static int l_issetugid() {
|
||
static int l_issetugid(void) {
|
||
return (geteuid() != getuid() || getegid() != getgid());
|
||
}
|
||
tests/fcgi-auth.c | ||
---|---|---|
#include <unistd.h>
|
||
#include <string.h>
|
||
int main () {
|
||
int main (void) {
|
||
char* p;
|
||
while (FCGI_Accept() >= 0) {
|
tests/fcgi-responder.c | ||
---|---|---|
#include <unistd.h>
|
||
#include <string.h>
|
||
int main () {
|
||
int main (void) {
|
||
int num_requests = 2;
|
||
while (num_requests > 0 &&
|