commit: r291 - trunk/libspread

[email protected]
Newsgroups gmane.network.spread.cvs
Message-ID <[email protected]>
Author: jschultz
Date: 2006-02-13 16:08:43 -0500 (Mon, 13 Feb 2006)
New Revision: 291

Modified:
   trunk/libspread/fl.c
Log:
Changed C initializers from empty {} initializations to things like { 0 } or { { 0 } }



Modified: trunk/libspread/fl.c
===================================================================
--- trunk/libspread/fl.c	2006-02-08 09:11:18 UTC (rev 290)
+++ trunk/libspread/fl.c	2006-02-13 21:08:43 UTC (rev 291)
@@ -543,7 +543,7 @@
 /* msgs (is sender in my current fl view?).                                                    */
 static fl_group *create_fl_group(const char *conn_name, const char *group_name) {
   fl_group *group;
-  group_id gid = {};
+  group_id gid = { { 0 } };
 
   DEBUG(std_stkfprintf(stderr, 1, "create_fl_group: conn_name '%s', group '%s'\n", 
 		       conn_name, group_name));
@@ -902,7 +902,7 @@
 }
 
 static gc_buff_mess *deliver_trans_sig(fl_conn *conn, gc_recv_mess *um, char *group) {
-  gc_buff_mess trans_sig = {}, *ret; /* sets everything to zero */
+  gc_buff_mess trans_sig = { 0 }, *ret; /* sets everything to zero */
 
   DEBUG(std_stkfprintf(stderr, 1, "deliver_trans_sig: mbox(%d, %p), group '%s'\n",
 		       conn->mbox, conn, group));
@@ -916,7 +916,7 @@
 }
 
 static gc_buff_mess *deliver_flush_req(fl_conn *conn, gc_recv_mess *um, char *group) {
-  gc_buff_mess flush_req = {}, *ret; /* sets everything to zero */
+  gc_buff_mess flush_req = { 0 }, *ret; /* sets everything to zero */
 
   DEBUG(std_stkfprintf(stderr, 1, "deliver_flush_req: mbox(%d, %p), group '%s'\n",
 		       conn->mbox, conn, group));
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.