Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 85dbbc0b0d2939541e6988da3479fe8e > files > 2

newt-0.52.16-3.mga4.src.rpm

2005-12-12  Gwenole Beauchesne  <gbeauchesne@mandriva.com>

	* checkboxtree.c (newtCheckboxTreeAddItem): Remove va_start()
	duplicates.

	* grid.c (newtGridHCloseStacked): Use va_end() when we have
	processed the varargs.
	(newtGridVCloseStacked): Likewise.
	(newtGridVStacked): Likewise.
	(newtGridHStacked): Likewise.

	* form.c (formOps): Make it local to the DSO.
	* grid.c (formOps): Fix declaration.

--- newt-0.51.6/grid.c.assorted-fixes	2002-08-15 16:13:40.000000000 -0400
+++ newt-0.51.6/grid.c	2005-12-12 09:18:23.000000000 -0500
@@ -26,8 +26,8 @@
     struct gridField ** fields;
 };
 
-/* this is a bit of a hack */
-extern struct componentOps formOps[];
+/* make it local to the dso */
+extern struct componentOps formOps __attribute__ ((visibility ("hidden")));
 
 newtGrid newtCreateGrid(int cols, int rows) {
     newtGrid grid;
@@ -108,7 +108,7 @@
 		    shuffleGrid(field->u.grid, left, top, 0);
 		j = field->u.grid->width;
 	    } else if (field->type == NEWT_GRID_COMPONENT) {
-		if (field->u.co->ops == formOps)
+		if (field->u.co->ops == &formOps)
 		    newtFormSetSize(field->u.co);
 		j = field->u.co->width;
 	    } else 
@@ -315,7 +315,7 @@
     va_list args;
     newtGrid grid;
 
-    va_start(args, what1);
+    va_end(args);
 
     grid = stackem(0, type1, what1, args, 1);
 
@@ -328,7 +328,7 @@
     va_list args;
     newtGrid grid;
 
-    va_start(args, what1);
+    va_end(args);
 
     grid = stackem(1, type1, what1, args, 1);
 
@@ -341,7 +341,7 @@
     va_list args;
     newtGrid grid;
 
-    va_start(args, what1);
+    va_end(args);
 
     grid = stackem(1, type1, what1, args, 0);
 
@@ -354,7 +354,7 @@
     va_list args;
     newtGrid grid;
 
-    va_start(args, what1);
+    va_end(args);
 
     grid = stackem(0, type1, what1, args, 0);
 
--- newt-0.51.6/form.c.assorted-fixes	2005-12-12 09:13:21.000000000 -0500
+++ newt-0.51.6/form.c	2005-12-12 09:19:26.000000000 -0500
@@ -415,7 +415,7 @@ static void formPlace(newtComponent co, 
 static newtCallback helpCallback;
 
 /* this isn't static as grid.c tests against it to find forms */
-struct componentOps formOps = {
+struct componentOps formOps __attribute__ ((visibility ("hidden"))) = {
     newtDrawForm,
     formEvent,
     newtFormDestroy,