You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2006/04/27 17:34:11 UTC

svn commit: r397570 - /httpd/httpd/trunk/support/fcgistarter.c

Author: jorton
Date: Thu Apr 27 08:34:09 2006
New Revision: 397570

URL: http://svn.apache.org/viewcvs?rev=397570&view=rev
Log:
Fix gcc warnings:

* support/fcgistarter.c (usage): Fix prototype.
(main): Remove unused variable; pass argv[0] to execl.

Modified:
    httpd/httpd/trunk/support/fcgistarter.c

Modified: httpd/httpd/trunk/support/fcgistarter.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/support/fcgistarter.c?rev=397570&r1=397569&r2=397570&view=diff
==============================================================================
--- httpd/httpd/trunk/support/fcgistarter.c (original)
+++ httpd/httpd/trunk/support/fcgistarter.c Thu Apr 27 08:34:09 2006
@@ -34,7 +34,7 @@
     "\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 @@
 {
     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 @@
              *     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) {