File ORBit-0.5.17-strictalias.dif of Package orbit

--- src/orbit-idl-compiler/backends/c/orbit-idl-c-demarshal.c	2002-06-06 11:07:44.000000000 +0000
+++ src/orbit-idl-compiler/backends/c/orbit-idl-c-demarshal.c	2005-01-22 13:11:40.000000000 +0000
@@ -121,9 +121,9 @@
     if(n >= 64)
       fprintf(cmi->ci->fh, "iiop_byteswap((guchar *)&(%s), _ORBIT_curptr, %d);\n", ctmp, node->u.datum_info.datum_size);
     else {
-      fprintf(cmi->ci->fh, "(*((guint%d *)&(%s))) = ", n, ctmp);
+      fprintf(cmi->ci->fh, "(%s) = ", ctmp);
       fprintf(cmi->ci->fh, "GUINT%d_SWAP_LE_BE(*((guint%d *)_ORBIT_curptr));",
 	      n, n);
     }
   } else {
     fprintf(cmi->ci->fh, "%s = *((", ctmp);
--- src/orbit-idl-compiler/orbit-idl-backends.c	2002-06-06 11:07:43.000000000 +0000
+++ src/orbit-idl-compiler/orbit-idl-backends.c	2005-01-22 12:45:29.000000000 +0000
@@ -40,7 +40,7 @@
   int ret;
   char *fname, *ctmp;
   GModule *gmod;
-  OIDL_Backend_Info *retval = NULL;
+  gpointer retptr = NULL;
 
   for(i = 0; orbit_idl_builtin_backends[i].name; i++) {
     if(!strcmp(lang, orbit_idl_builtin_backends[i].name))
@@ -64,11 +64,11 @@
 
   ret = g_module_symbol(gmod,
 			"orbit_idl_backend",
-			(gpointer *)&retval);
+			&retptr);
   if(!ret) {
 	g_warning("Symbol lookup failed: %s", g_module_error());
 	return NULL;
   }
 
-  return retval;
+  return retptr;
 }
openSUSE Build Service is sponsored by