From 222bd07e9df5e3b5a367d1282b43fd3a827a7552 Mon Sep 17 00:00:00 2001 From: "John (J5) Palmieri" Date: Fri, 4 Aug 2006 16:15:16 +0000 Subject: * configure.in: add -Wdeclaration-after-statement * dbus/dbus-connection.c: change all the pending call stuff to reflect the fact that pending call operations use the connection lock * dbus/dbus-pending-call.c: add locking here * dbus/dbus-errors.c (struct DBusRealError): don't make the name field const consistent with how message field is done --- dbus/dbus-errors.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dbus/dbus-errors.c') diff --git a/dbus/dbus-errors.c b/dbus/dbus-errors.c index d8f8aa60..fb230852 100644 --- a/dbus/dbus-errors.c +++ b/dbus/dbus-errors.c @@ -40,7 +40,7 @@ */ typedef struct { - const char *name; /**< error name */ + char *name; /**< error name */ char *message; /**< error message */ unsigned int const_message : 1; /**< Message is not owned by DBusError */ @@ -219,7 +219,7 @@ dbus_set_error_const (DBusError *error, real = (DBusRealError *)error; - real->name = name; + real->name = (char*) name; real->message = (char *)message; real->const_message = TRUE; } -- cgit