httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r835527 - in /httpd/mod_fcgid/trunk/modules/fcgid: fcgid_proc_unix.c mod_fcgid.c
Date Thu, 12 Nov 2009 20:22:33 GMT
Author: trawick
Date: Thu Nov 12 20:22:32 2009
New Revision: 835527

URL: http://svn.apache.org/viewvc?rev=835527&view=rev
Log:
fix gcc warnings from r835406

Modified:
    httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c
    httpd/mod_fcgid/trunk/modules/fcgid/mod_fcgid.c

Modified: httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c?rev=835527&r1=835526&r2=835527&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c (original)
+++ httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c Thu Nov 12 20:22:32 2009
@@ -183,8 +183,6 @@
     char **proc_environ;
     struct sockaddr_un unix_addr;
     apr_procattr_t *procattr = NULL;
-    char key_name[_POSIX_PATH_MAX];
-    void *dummy;
     int argc;
     const char *wargv[APACHE_ARG_MAX];
     const char *word; /* For wrapper */
@@ -808,9 +806,7 @@
 {
     const char *diewhy = NULL;
     char signal_info[HUGE_STRING_LEN];
-    char key_name[_POSIX_PATH_MAX];
     int signum = exitcode;
-    void* tmp;
 
     memset(signal_info, 0, HUGE_STRING_LEN);
 

Modified: httpd/mod_fcgid/trunk/modules/fcgid/mod_fcgid.c
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/mod_fcgid.c?rev=835527&r1=835526&r2=835527&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/modules/fcgid/mod_fcgid.c (original)
+++ httpd/mod_fcgid/trunk/modules/fcgid/mod_fcgid.c Thu Nov 12 20:22:32 2009
@@ -287,9 +287,9 @@
 }
     
 /* fcgid Extension to mod_status */
-int fcgid_status_hook(request_rec *r, int flags)
+static int fcgid_status_hook(request_rec *r, int flags)
 {       
-    fcgid_procnode **ar, *current_node;
+    fcgid_procnode **ar = NULL, *current_node;
     int num_ent, index;
     apr_ino_t last_inode = 0;
     apr_dev_t last_deviceid = 0;
@@ -297,7 +297,7 @@
     uid_t last_uid = 0;
     apr_size_t last_share_grp_id = 0;
     const char *last_virtualhost = NULL;
-    char* basename, *tmpbasename;
+    const char* basename, *tmpbasename;
     fcgid_procnode *proc_table = proctable_get_table_array();
     fcgid_procnode *error_list_header = proctable_get_error_list();
     fcgid_procnode *idle_list_header = proctable_get_idle_list();



Mime
View raw message