From 0be1f2f64c5fc05cb9b6843b13c61193eec8e5b3 Mon Sep 17 00:00:00 2001
From: Nikias Bassen
Date: Tue, 25 Jun 2019 13:50:48 +0200
Subject: fdr: Fix typo in error type that lead to compile errors with older
 libimobiledevice

---
 src/fdr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fdr.c b/src/fdr.c
index 68b9aed..dcee367 100644
--- a/src/fdr.c
+++ b/src/fdr.c
@@ -146,7 +146,7 @@ int fdr_poll_and_handle_message(fdr_client_t fdr)
 #ifdef HAVE_IDEVICE_E_TIMEOUT
 	if (device_error == IDEVICE_E_TIMEOUT || (device_error == IDEVICE_E_SUCCESS && bytes != sizeof(cmd)))
 #else
-	if (device_error == IDEVICE_ESUCCESS && bytes != sizeof(cmd))
+	if (device_error == IDEVICE_E_SUCCESS && bytes != sizeof(cmd))
 #endif
 	{
 		debug("FDR %p timeout waiting for command\n", fdr);
-- 
cgit v1.1-32-gdbae