ORBit2 r2100 - in branches/gnome-2-24: . src/idl-compiler src/orb/orb-core



Author: kmaraas
Date: Fri Oct  3 09:14:58 2008
New Revision: 2100
URL: http://svn.gnome.org/viewvc/ORBit2?rev=2100&view=rev

Log:
2008-10-03  Kjartan Maraas  <kmaraas gnome org>

	* src/idl-compiler/orbit-idl-c-utils.c: (orbit_cbe_write_typespec),
	(orbit_cbe_write_param_typespec_raw):
	* src/orb/orb-core/corba-orb.c: Fix missing format specifiers
	and const. Closes bug #554564.

Modified:
   branches/gnome-2-24/ChangeLog
   branches/gnome-2-24/src/idl-compiler/orbit-idl-c-utils.c
   branches/gnome-2-24/src/orb/orb-core/corba-orb.c

Modified: branches/gnome-2-24/src/idl-compiler/orbit-idl-c-utils.c
==============================================================================
--- branches/gnome-2-24/src/idl-compiler/orbit-idl-c-utils.c	(original)
+++ branches/gnome-2-24/src/idl-compiler/orbit-idl-c-utils.c	Fri Oct  3 09:14:58 2008
@@ -203,7 +203,7 @@
 orbit_cbe_write_typespec(FILE *of, IDL_tree tree)
 {
     char *name = orbit_cbe_get_typespec_str(tree);
-    fprintf( of, name);
+    fprintf(of, "%s", name);
     g_free(name);
 }
 
@@ -262,7 +262,7 @@
 {
     char *str;
     str = orbit_cbe_write_param_typespec_str (ts, role);
-    fprintf (of, str);
+    fprintf (of, "%s", str);
     g_free (str);
 }
 

Modified: branches/gnome-2-24/src/orb/orb-core/corba-orb.c
==============================================================================
--- branches/gnome-2-24/src/orb/orb-core/corba-orb.c	(original)
+++ branches/gnome-2-24/src/orb/orb-core/corba-orb.c	Fri Oct  3 09:14:58 2008
@@ -49,7 +49,7 @@
 static char        *orbit_net_id             = NULL;
 static gboolean     orbit_use_http_iors      = FALSE;
 static char        *orbit_ipsock             = NULL;
-static char        *orbit_ipname             = NULL;
+static const char  *orbit_ipname             = NULL;
 static char        *orbit_debug_options      = NULL;
 static char        *orbit_naming_ref         = NULL;
 static GSList      *orbit_initref_list       = NULL; 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]