ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: [Ethereal-dev] Some missing initializer patches

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Thu, 31 May 2001 01:17:36 +0200
Hello,

the attached patch fixes all missing initializers warnings except
those in the hf[] structuer. Those will be handled in a seperate
patch later this week.

 ciao
    J�rg
-- 
Joerg Mayer                                          <jmayer@xxxxxxxxx>
I found out that "pro" means "instead of" (as in proconsul). Now I know
what proactive means.
Changelog: <jmayer@xxxxxxxxx>
        - Fix the "missing initializer" warnings when compiling
          with gccs -W option.

? ethereal/register.c-tmp
Index: ethereal/capture.c
===================================================================
RCS file: /cvsroot/ethereal/capture.c,v
retrieving revision 1.149
diff -u -u -r1.149 capture.c
--- capture.c	2001/05/01 00:18:46	1.149
+++ capture.c	2001/05/30 22:24:23
@@ -1230,17 +1230,17 @@
       gint *value_ptr;
       GtkWidget *label, *value, *percent;
   } counts[] = {
-      { "Total", &ld.counts.total },
-      { "SCTP", &ld.counts.sctp },
-      { "TCP", &ld.counts.tcp },
-      { "UDP", &ld.counts.udp },
-      { "ICMP", &ld.counts.icmp },
-      { "OSPF", &ld.counts.ospf },
-      { "GRE", &ld.counts.gre },
-      { "NetBIOS", &ld.counts.netbios },
-      { "IPX", &ld.counts.ipx },
-      { "VINES", &ld.counts.vines },
-      { "Other", &ld.counts.other }
+      { "Total", &ld.counts.total, NULL, NULL, NULL },
+      { "SCTP", &ld.counts.sctp, NULL, NULL, NULL },
+      { "TCP", &ld.counts.tcp, NULL, NULL, NULL },
+      { "UDP", &ld.counts.udp, NULL, NULL, NULL },
+      { "ICMP", &ld.counts.icmp, NULL, NULL, NULL },
+      { "OSPF", &ld.counts.ospf, NULL, NULL, NULL },
+      { "GRE", &ld.counts.gre, NULL, NULL, NULL },
+      { "NetBIOS", &ld.counts.netbios, NULL, NULL, NULL },
+      { "IPX", &ld.counts.ipx, NULL, NULL, NULL },
+      { "VINES", &ld.counts.vines, NULL, NULL, NULL },
+      { "Other", &ld.counts.other, NULL, NULL, NULL }
   };
 
 #define N_COUNTS (sizeof counts / sizeof counts[0])
Index: ethereal/ncp2222.py
===================================================================
RCS file: /cvsroot/ethereal/ncp2222.py,v
retrieving revision 1.7
diff -u -u -r1.7 ncp2222.py
--- ncp2222.py	2000/09/22 16:37:49	1.7
+++ ncp2222.py	2001/05/30 22:24:25
@@ -1451,7 +1451,7 @@
 		print '\t\t%s, NULL, %s, NULL,' % (ptvc_request, ptvc_reply)
 		print '\t\t%s },\n' % (errors.Name())
 
-	print '\t{ 0, 0, 0, NULL }'
+	print '\t{ 0, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL }'
 	print "};\n"
 
 	print "/* ncp funcs that require a subfunc */"
Index: ethereal/packet-nisplus.c
===================================================================
RCS file: /cvsroot/ethereal/packet-nisplus.c,v
retrieving revision 1.4
diff -u -u -r1.4 packet-nisplus.c
--- packet-nisplus.c	2001/05/30 06:01:02	1.4
+++ packet-nisplus.c	2001/05/30 22:24:26
@@ -1884,7 +1884,7 @@
 		NULL,	NULL },
 	{ CBPROC_ERROR,			"NULL",
 		dissect_nisplus_error,	NULL },
-	{	0,	NULL	},
+	{	0,	NULL,	NULL,	NULL },
 };
 
 void
Index: ethereal/gtk/gtkclist.c
===================================================================
RCS file: /cvsroot/ethereal/gtk/gtkclist.c,v
retrieving revision 1.8
diff -u -u -r1.8 gtkclist.c
--- gtkclist.c	2001/04/24 00:28:21	1.8
+++ gtkclist.c	2001/05/30 22:24:32
@@ -2393,7 +2393,7 @@
 		     gint      vertical,
 		     gint      horizontal)
 {
-  GtkRequisition requisition = { 0 };
+  GtkRequisition requisition = { 0, 0 };
   GtkCListRow *clist_row;
 
   g_return_if_fail (clist != NULL);
@@ -3216,7 +3216,7 @@
 			  gint      column,
 			  GtkStyle *style)
 {
-  GtkRequisition requisition = { 0 };
+  GtkRequisition requisition = { 0, 0 };
   GtkCListRow *clist_row;
 
   g_return_if_fail (clist != NULL);
@@ -7120,7 +7120,7 @@
 static gint
 horizontal_timeout (GtkCList *clist)
 {
-  GdkEventMotion event = { 0 };
+  GdkEventMotion event;
 
   GDK_THREADS_ENTER ();
 
@@ -7139,7 +7139,7 @@
 static gint
 vertical_timeout (GtkCList *clist)
 {
-  GdkEventMotion event = { 0 };
+  GdkEventMotion event;
 
   GDK_THREADS_ENTER ();
 
@@ -7344,7 +7344,7 @@
 		 GList    *a,         /* first list to merge */
 		 GList    *b)         /* second list to merge */
 {
-  GList z = { 0 };                    /* auxiliary node */
+  GList z = { NULL, NULL, NULL };     /* auxiliary node */
   GList *c;
   gint cmp;