diff options
author | Nikias Bassen | 2019-01-23 01:28:48 +0100 |
---|---|---|
committer | Nikias Bassen | 2019-01-23 01:28:48 +0100 |
commit | 59fae11be8d9b2134b2b60c02c20dcb7ff10ff5d (patch) | |
tree | 76e7eca891de12cadf421c003d1c303ba18152e5 /src | |
parent | a808accd1e748184933f0e4d97d499d79f34f889 (diff) | |
download | idevicerestore-59fae11be8d9b2134b2b60c02c20dcb7ff10ff5d.tar.gz idevicerestore-59fae11be8d9b2134b2b60c02c20dcb7ff10ff5d.tar.bz2 |
thread: Silence two compiler warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/restore.c | 2 | ||||
-rw-r--r-- | src/thread.h | 1 |
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; |