summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rdcp_dbus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rdcp_dbus.c b/rdcp_dbus.c
index 0e213aa..b05e5c9 100644
--- a/rdcp_dbus.c
+++ b/rdcp_dbus.c
@@ -109,7 +109,10 @@ dbus_error_to_gerror(DBusError *dbus_error)
/*----------------------------------------------------------------------------*/
-/* taken from dbus/tools/dbus-print-message.c */
+/*
+ * The code to print a DBus message is based upon DBUS code in
+ * dbus/tools/dbus-print-message.c which is GPL.
+ */
static const char*
dbus_msg_type_to_string (int message_type)
@@ -181,9 +184,6 @@ dbus_message_print_hex(GString *string, unsigned char *bytes, unsigned int len,
static void
dbus_message_print_byte_array(GString *string, DBusMessageIter *iter, int depth)
{
- /* Not using DBusString because it's not public API. It's 2009, and I'm
- * manually growing a string chunk by chunk.
- */
unsigned char *bytes = malloc (DEFAULT_SIZE + 1);
unsigned int len = 0;
unsigned int max = DEFAULT_SIZE;