ORBit2 r2076 - in trunk: . test
- From: michael svn gnome org
- To: svn-commits-list gnome org
- Subject: ORBit2 r2076 - in trunk: . test
- Date: Fri, 18 Jul 2008 15:50:37 +0000 (UTC)
Author: michael
Date: Fri Jul 18 15:50:37 2008
New Revision: 2076
URL: http://svn.gnome.org/viewvc/ORBit2?rev=2076&view=rev
Log:
2008-07-18 Michael Meeks <michael meeks novell com>
* test/typelib-dump.c (dump_tc): remove redundant code
causing warnings - thanks JP.
Modified:
trunk/ChangeLog
trunk/test/typelib-dump.c
Modified: trunk/test/typelib-dump.c
==============================================================================
--- trunk/test/typelib-dump.c (original)
+++ trunk/test/typelib-dump.c Fri Jul 18 15:50:37 2008
@@ -9,19 +9,13 @@
#include "../src/orb/orb-core/orb-core-private.h"
static void
-dump_tc (CORBA_TypeCode tc, int ident)
+dump_tc (CORBA_TypeCode tc)
{
- char *id_str;
CORBA_TypeCode kind = TC_CORBA_TCKind;
- id_str = g_new (char, ident + 1);
- memset (id_str, ' ', ident);
- id_str [ident] = '\0';
-
- printf ("%sType %12s: '%s'\n",
- id_str, kind->subnames [tc->kind],
+ printf ("Type %12s: '%s'\n",
+ kind->subnames [tc->kind],
tc->repo_id);
- g_free (id_str);
}
static void
@@ -121,7 +115,7 @@
else {
printf ("%u types:\n", tcs->_length);
for (i = 0; i < tcs->_length; i++)
- dump_tc (tcs->_buffer [i], 0);
+ dump_tc (tcs->_buffer [i]);
}
ifaces = ORBit_small_get_iinterfaces (name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]