Trivial microoptimization
Miloslav Trmac
mitr@volny.cz
Sat, 28 Jun 2003 05:06:38 +0200
--tqI+Z3u+9OQ7kwn0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hello,
other two trivial patches. One is a microoptimization, other removes
obsolete @todo.
Mirek
--tqI+Z3u+9OQ7kwn0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-micro
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;
--tqI+Z3u+9OQ7kwn0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-todo
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()
--tqI+Z3u+9OQ7kwn0--