From b3ef8b0e9bd2719d502c7f2e0cf829e151386162 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 27 Dec 2002 02:07:21 +0000 Subject: 2002-12-26 Havoc Pennington * dbus/dbus-auth.c: fixes fixes fixes * dbus/dbus-transport-unix.c: wire up support for encoding/decoding data on the wire * dbus/dbus-auth.c (_dbus_auth_encode_data) (_dbus_auth_decode_data): append to target string instead of nuking it. --- dbus/dbus-sysdeps.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'dbus/dbus-sysdeps.c') diff --git a/dbus/dbus-sysdeps.c b/dbus/dbus-sysdeps.c index 76b9c5ce..fed88144 100644 --- a/dbus/dbus-sysdeps.c +++ b/dbus/dbus-sysdeps.c @@ -116,6 +116,12 @@ _dbus_read (int fd, { /* put length back (doesn't actually realloc) */ _dbus_string_set_length (buffer, start + bytes_read); + +#if 0 + if (bytes_read > 0) + _dbus_verbose_bytes_of_string (buffer, start, bytes_read); +#endif + return bytes_read; } } @@ -148,6 +154,11 @@ _dbus_write (int fd, if (errno == EINTR) goto again; +#if 0 + if (bytes_written > 0) + _dbus_verbose_bytes_of_string (buffer, start, bytes_written); +#endif + return bytes_written; } -- cgit