httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r836268 - /httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proctbl.h
Date Sat, 14 Nov 2009 21:38:28 GMT
Author: trawick
Date: Sat Nov 14 21:38:28 2009
New Revision: 836268

URL: http://svn.apache.org/viewvc?rev=836268&view=rev
Log:
axe the anonymous union support to resolve warnings or fatal
errors with different levels of Sun Studio

use the extra storage to simplify access

Modified:
    httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proctbl.h

Modified: httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proctbl.h
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proctbl.h?rev=836268&r1=836267&r2=836268&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proctbl.h (original)
+++ httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proctbl.h Sat Nov 14 21:38:28 2009
@@ -37,10 +37,9 @@
     4) error list: a process is associated, and killing the process now
 */
 typedef struct {
-    union {
-        int next_index;         /* the next array index in the list */
-        int node_type;          /* the type of this node, used in fcgid_status_hook() only
*/
-    };
+    /* only one of next_index or node_type is used, depending on context */
+    int next_index;             /* the next array index in the list */
+    int node_type;              /* the type of this node, used in fcgid_status_hook() only
*/
     apr_pool_t *proc_pool;      /* pool for process */
     apr_proc_t proc_id;         /* the process id */
     char executable_path[_POSIX_PATH_MAX]; /* executable file path */



Mime
View raw message