[at-spi2-core] Avoid compiler warnings
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core] Avoid compiler warnings
- Date: Thu, 17 May 2018 14:48:15 +0000 (UTC)
commit 432e2ab84a4f0e14e3f6066792635842e0846a86
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu May 17 15:45:47 2018 +0100
Avoid compiler warnings
Use the appropriate pointer type when testing dbind_any_marshal() and
dbind_any_demarshal().
dbind/dbtest.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/dbind/dbtest.c b/dbind/dbtest.c
index abd241a..42c1919 100644
--- a/dbind/dbtest.c
+++ b/dbind/dbtest.c
@@ -27,7 +27,7 @@
#define DESKICE_PATH "/Novell/ICEDesktop/Daemon"
#define DESKICE_NAMESPACE "Novell.ICEDesktop.Daemon"
-void marshal (DBusMessage *msg, char *type, void *ptr)
+void marshal (DBusMessage *msg, const char *type, void *ptr)
{
DBusMessageIter iter;
@@ -35,7 +35,7 @@ void marshal (DBusMessage *msg, char *type, void *ptr)
dbind_any_marshal (&iter, &type, &ptr);
}
-void demarshal (DBusMessage *msg, char *type, void *ptr)
+void demarshal (DBusMessage *msg, const char *type, void *ptr)
{
DBusMessageIter iter;
@@ -317,8 +317,8 @@ void test_twovals ()
DBusMessage *msg;
DBusMessageIter iter;
TwoVal i, o;
- char *type_twoval = TYPEOF_TWOVAL;
- char *type;
+ const char *type_twoval = TYPEOF_TWOVAL;
+ const char *type;
void *ptr;
msg = dbus_message_new (DBUS_MESSAGE_TYPE_METHOD_CALL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]