summaryrefslogtreecommitdiff
path: root/telepathy-glib/handle-repo-static.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-04-01 14:19:44 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-04-01 14:19:44 +0100
commitf70d003995d67314178e48b1933b7b29cf1dd683 (patch)
tree7eafc618e68ccc9d35b0e6e3e658164b18c451cd /telepathy-glib/handle-repo-static.c
parent6dad56ec5e502ce68cbf71c6849896881a26f3b5 (diff)
downloadtelepathy-glib-f70d003995d67314178e48b1933b7b29cf1dd683.tar.gz
Use tp_strdiff instead of strcmp when comparing strings for equality
Diffstat (limited to 'telepathy-glib/handle-repo-static.c')
-rw-r--r--telepathy-glib/handle-repo-static.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/telepathy-glib/handle-repo-static.c b/telepathy-glib/handle-repo-static.c
index 10dcdb632..05ca85168 100644
--- a/telepathy-glib/handle-repo-static.c
+++ b/telepathy-glib/handle-repo-static.c
@@ -44,6 +44,7 @@
#include <string.h>
#include <telepathy-glib/handle-repo-internal.h>
+#include <telepathy-glib/util.h>
enum
{
@@ -267,7 +268,7 @@ static_lookup_handle (TpHandleRepoIface *irepo,
for (i = 0; i < self->last_handle; i++)
{
- if (!strcmp (self->handle_names[i], id))
+ if (!tp_strdiff (self->handle_names[i], id))
return (TpHandle) i + 1;
}