diff options
Diffstat (limited to 'telepathy-glib/core-proxy.c')
-rw-r--r-- | telepathy-glib/core-proxy.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/telepathy-glib/core-proxy.c b/telepathy-glib/core-proxy.c index 78147f058..47474bf26 100644 --- a/telepathy-glib/core-proxy.c +++ b/telepathy-glib/core-proxy.c @@ -164,9 +164,10 @@ tp_proxy_signal_connection_v0_take_results (TpProxySignalConnection *sc, void tp_private_proxy_set_implementation (TpProxyImplementation *impl) { - g_assert_cmpstr (impl->version, ==, VERSION); - g_assert_cmpuint (impl->size, ==, sizeof (TpProxyImplementation)); - g_assert_cmpstr (g_type_name (impl->type), ==, "TpProxy"); + /* not using tp_strdiff because it isn't available in the core library */ + g_assert (strcmp (impl->version, VERSION) == 0); + g_assert (impl->size == sizeof (TpProxyImplementation)); + g_assert (strcmp (g_type_name (impl->type), "TpProxy") == 0); g_assert (_tp_proxy_implementation.version == NULL); g_assert (impl->get_interface_by_id != NULL); @@ -180,5 +181,5 @@ tp_private_proxy_set_implementation (TpProxyImplementation *impl) memcpy (&_tp_proxy_implementation, impl, sizeof (TpProxyImplementation)); - g_assert_cmpstr (_tp_proxy_implementation.version, ==, VERSION); + g_assert (strcmp (_tp_proxy_implementation.version, VERSION) == 0); } |