aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-file.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2009-06-02 17:09:28 +0800
committerCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2009-06-07 21:20:09 +0800
commitf0d5544426b06662365a3b99e05eae23e76b6ee6 (patch)
tree4e5cc2e6b30ef691289b46e66d9c6b84096a60f6 /libempathy/empathy-tp-file.c
parent246c2f6468ab7dc1546b2793aed023035f5d88e8 (diff)
downloadgsoc2013-empathy-f0d5544426b06662365a3b99e05eae23e76b6ee6.tar
gsoc2013-empathy-f0d5544426b06662365a3b99e05eae23e76b6ee6.tar.gz
gsoc2013-empathy-f0d5544426b06662365a3b99e05eae23e76b6ee6.tar.bz2
gsoc2013-empathy-f0d5544426b06662365a3b99e05eae23e76b6ee6.tar.lz
gsoc2013-empathy-f0d5544426b06662365a3b99e05eae23e76b6ee6.tar.xz
gsoc2013-empathy-f0d5544426b06662365a3b99e05eae23e76b6ee6.tar.zst
gsoc2013-empathy-f0d5544426b06662365a3b99e05eae23e76b6ee6.zip
Use empathy_uint_compare
Diffstat (limited to 'libempathy/empathy-tp-file.c')
-rw-r--r--libempathy/empathy-tp-file.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/libempathy/empathy-tp-file.c b/libempathy/empathy-tp-file.c
index 9ae42828b..a056699f8 100644
--- a/libempathy/empathy-tp-file.c
+++ b/libempathy/empathy-tp-file.c
@@ -128,18 +128,6 @@ tp_file_get_state_cb (TpProxy *proxy,
priv->state = g_value_get_uint (value);
}
-static gint
-uint_compare (gconstpointer a, gconstpointer b)
-{
- const guint *uinta = a;
- const guint *uintb = b;
-
- if (*uinta == *uintb)
- return 0;
-
- return (*uinta > *uintb) ? 1 : -1;
-}
-
static void
tp_file_get_available_socket_types_cb (TpProxy *proxy,
const GValue *value,
@@ -175,7 +163,7 @@ tp_file_get_available_socket_types_cb (TpProxy *proxy,
GUINT_TO_POINTER (TP_SOCKET_ADDRESS_TYPE_IPV4))) != NULL)
{
priv->socket_address_type = TP_SOCKET_ADDRESS_TYPE_IPV4;
- g_array_sort (access_controls, uint_compare);
+ g_array_sort (access_controls, empathy_uint_compare);
/* here port is preferred over localhost */
if ((g_array_index (access_controls, guint, 0) ==