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

Trivial microoptimization



Hello,
other two trivial patches. One is a microoptimization, other removes
obsolete @todo.
	Mirek
diff -ur dbus/dbus/dbus-message.c sw/dbus/dbus/dbus-message.c
--- dbus/dbus/dbus-message.c	2003-06-28 01:16:52.000000000 +0200
+++ sw/dbus/dbus/dbus-message.c	2003-06-28 03:19:54.000000000 +0200
@@ -4243,8 +4243,8 @@
 	  break;
 
         default:
-	  _dbus_verbose ("Ignoring an unknown header field: %c%c%c%c at offset %d\n",
-			 field[0], field[1], field[2], field[3], pos);
+	  _dbus_verbose ("Ignoring an unknown header field: %.4s at offset %d\n",
+			 field, pos);
 	}
       
       pos = new_pos;
diff -ur dbus/dbus/dbus-message.c sw/dbus/dbus/dbus-message.c
--- dbus/dbus/dbus-message.c	2003-06-28 01:16:52.000000000 +0200
+++ sw/dbus/dbus/dbus-message.c	2003-06-28 02:53:54.000000000 +0200
@@ -949,9 +949,6 @@
  * no service is set; this is appropriate when using D-BUS in a
  * peer-to-peer context (no message bus).
  *
- * @todo reverse the arguments, first 'name' then 'service'
- * as 'name' is more fundamental
- *
  * @param name name of the message
  * @param destination_service service that the message should be sent to or #NULL
  * @returns a new DBusMessage, free with dbus_message_unref()

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