From 68d94428683f4bcd504e97acfe935cafdb0b3d1f Mon Sep 17 00:00:00 2001 From: qarkai Date: Tue, 11 Apr 2017 21:16:39 +0300 Subject: [PATCH] Remove fallback for glib version Already required it in configure.ac --HG-- branch : string-comparison-r2 --- libpurple/util.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libpurple/util.c b/libpurple/util.c index 9e32f6f8ad..5015acc76a 100644 --- a/libpurple/util.c +++ b/libpurple/util.c @@ -3029,12 +3029,7 @@ purple_socket_speaks_ipv4(int fd) gboolean purple_strequal(const gchar *left, const gchar *right) { -#if GLIB_CHECK_VERSION(2,16,0) return (g_strcmp0(left, right) == 0); -#else - return ((left == NULL && right == NULL) || - (left != NULL && right != NULL && strcmp(left, right) == 0)); -#endif } const char * @@ -3751,7 +3746,7 @@ find_header_content(const char *data, gsize data_len, const char *header) return NULL; } -static gsize +static gsize parse_content_len(const char *data, gsize data_len) { gsize content_len = 0; -- 2.11.4.GIT