summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2016-07-01 02:00:54 +0200
committerGravatar Nikias Bassen2016-07-01 02:00:54 +0200
commit441773dd7113f34b165d4caff9b6df62d547c179 (patch)
tree6856f65b7164cb17883886e555c7125976e57a69 /src
parent79bbdc028f6e6e0a9015aeb9fecaaef875b9ccad (diff)
downloadlibideviceactivation-441773dd7113f34b165d4caff9b6df62d547c179.tar.gz
libideviceactivation-441773dd7113f34b165d4caff9b6df62d547c179.tar.bz2
activation: Fix logical not vs. value comparison, silencing compiler warning
Diffstat (limited to 'src')
-rw-r--r--src/activation.c4
1 files 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);