From 441773dd7113f34b165d4caff9b6df62d547c179 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 1 Jul 2016 02:00:54 +0200 Subject: activation: Fix logical not vs. value comparison, silencing compiler warning --- src/activation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/activation.c b/src/activation.c index dc2de9f..57d5ea1 100644 --- a/src/activation.c +++ b/src/activation.c @@ -135,7 +135,7 @@ static idevice_activation_error_t idevice_activation_parse_buddyml_response(idev xmlXPathObjectPtr xpath_result = NULL; int i = 0; - if (!response->content_type == IDEVICE_ACTIVATION_CONTENT_TYPE_BUDDYML) + if (response->content_type != IDEVICE_ACTIVATION_CONTENT_TYPE_BUDDYML) return IDEVICE_ACTIVATION_E_UNKNOWN_CONTENT_TYPE; doc = xmlReadMemory(response->raw_content, response->raw_content_size, "ideviceactivation.xml", NULL, XML_PARSE_NOERROR); @@ -341,7 +341,7 @@ static idevice_activation_error_t idevice_activation_parse_html_response(idevice xmlXPathContextPtr context = NULL; xmlXPathObjectPtr xpath_result = NULL; - if (!response->content_type == IDEVICE_ACTIVATION_CONTENT_TYPE_HTML) + if (response->content_type != IDEVICE_ACTIVATION_CONTENT_TYPE_HTML) return IDEVICE_ACTIVATION_E_UNKNOWN_CONTENT_TYPE; doc = xmlReadMemory(response->raw_content, response->raw_content_size, "ideviceactivation.xml", NULL, XML_PARSE_RECOVER | XML_PARSE_NOERROR); -- cgit v1.1-32-gdbae