summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2006-04-27 17:34:09 +0200
committerJoe Orton <jorton@apache.org>2006-04-27 17:34:09 +0200
commitea4178c2020f048e8ad57d6b3c49ff5f590e240d (patch)
tree8223ddf0f42f1626d24d9f13deaec031a71bd0f4
parent Remove all /machine:I386 references, these are getting in the way (diff)
downloadapache2-ea4178c2020f048e8ad57d6b3c49ff5f590e240d.tar.xz
apache2-ea4178c2020f048e8ad57d6b3c49ff5f590e240d.zip
Fix gcc warnings:
* support/fcgistarter.c (usage): Fix prototype. (main): Remove unused variable; pass argv[0] to execl. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@397570 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--support/fcgistarter.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/support/fcgistarter.c b/support/fcgistarter.c
index 43500e82e8..2e42df3f00 100644
--- a/support/fcgistarter.c
+++ b/support/fcgistarter.c
@@ -34,7 +34,7 @@ static const char *usage_message =
"\n"
"If an interface is not specified, any available will be used.\n";
-static void usage()
+static void usage(void)
{
fprintf(stderr, "%s", usage_message);
@@ -57,7 +57,6 @@ int main(int argc, const char *argv[])
{
apr_file_t *infd, *skwrapper;
apr_sockaddr_t *skaddr;
- apr_procattr_t *pattr;
apr_getopt_t *gopt;
apr_socket_t *skt;
apr_pool_t *pool;
@@ -197,7 +196,7 @@ int main(int argc, const char *argv[])
* which means by the time it gets to the fastcgi process it
* is no longer fd 0, so it doesn't work. Sigh. */
- execl(command, NULL);
+ execl(command, command, NULL);
#endif
} else if (rv == APR_INPARENT) {
if (num_to_start == 0) {