summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-01-23 01:28:48 +0100
committerGravatar Nikias Bassen2019-01-23 01:28:48 +0100
commit59fae11be8d9b2134b2b60c02c20dcb7ff10ff5d (patch)
tree76e7eca891de12cadf421c003d1c303ba18152e5
parenta808accd1e748184933f0e4d97d499d79f34f889 (diff)
downloadidevicerestore-59fae11be8d9b2134b2b60c02c20dcb7ff10ff5d.tar.gz
idevicerestore-59fae11be8d9b2134b2b60c02c20dcb7ff10ff5d.tar.bz2
thread: Silence two compiler warnings
-rw-r--r--src/restore.c2
-rw-r--r--src/thread.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/restore.c b/src/restore.c
index a187dfa..cdab845 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -2318,7 +2318,7 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit
idevice_t device = NULL;
restored_client_t restore = NULL;
restored_error_t restore_error = RESTORE_E_SUCCESS;
- thread_t fdr_thread = NULL;
+ thread_t fdr_thread = (thread_t)NULL;
restore_finished = 0;
diff --git a/src/thread.h b/src/thread.h
index 11e789a..feccc94 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -34,6 +34,7 @@ typedef volatile struct {
#define THREAD_ID GetCurrentThreadId()
#else
#include <pthread.h>
+#include <signal.h>
typedef pthread_t thread_t;
typedef pthread_mutex_t mutex_t;
typedef pthread_once_t thread_once_t;