summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-08-19 22:05:25 -0400
committerDave Reisner <dreisner@archlinux.org>2012-08-19 22:05:25 -0400
commit3468d79391b13f4524cbdafd7085bca99a01d787 (patch)
treec752674e89e691f1a567914f01bbdd836b25b196
parent9836d6d22ac22fe7be584da2006ae8d9479096cc (diff)
downloadfcgiwrap-3468d79391b13f4524cbdafd7085bca99a01d787.tar.xz
fcgiwrap-3468d79391b13f4524cbdafd7085bca99a01d787.zip
Cleanup -Wmissing-prototypes compiler warnings
-rw-r--r--fcgiwrap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fcgiwrap.c b/fcgiwrap.c
index 2ff33f3..aeccf3b 100644
--- a/fcgiwrap.c
+++ b/fcgiwrap.c
@@ -348,7 +348,7 @@ static void fcgi_pass(struct fcgi_context *fc)
fcgi_finish(fc, "reading CGI reply (no response received)");
}
-int check_file_perms(const char *path)
+static int check_file_perms(const char *path)
{
struct stat ls;
struct stat fs;
@@ -378,7 +378,7 @@ int check_file_perms(const char *path)
}
}
-char *get_cgi_filename() /* and fixup environment */
+static char *get_cgi_filename(void) /* and fixup environment */
{
int buflen = 1, docrootlen;
char *buf = NULL;
@@ -461,7 +461,7 @@ static int blacklisted_env(const char *var_name, const char *var_name_end)
return 0;
}
-static void inherit_environment()
+static void inherit_environment(void)
{
char * const * p;
char *q;
@@ -495,7 +495,7 @@ static void error_403(const char *reason, const char *filename)
exit(99);
}
-static void handle_fcgi_request()
+static void handle_fcgi_request(void)
{
int pipe_in[2];
int pipe_out[2];
@@ -665,7 +665,7 @@ static int listen_on_fd(int fd) {
return 0;
}
-int setup_socket(char *url) {
+static int setup_socket(char *url) {
char *p = url;
char *q;
int fd;