From 719b964e80e330001e4004c0d2deba3e0a6ed05c Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 24 Sep 2015 19:24:35 +0200 Subject: restore: Cast to thread_t to fix compiler warning --- src/restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/restore.c b/src/restore.c index b324470..3abf082 100644 --- a/src/restore.c +++ b/src/restore.c @@ -1746,7 +1746,7 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit if (!fdr_connect(device, FDR_CTRL, &fdr_control_channel)) { if(thread_new(&fdr_thread, fdr_listener_thread, fdr_control_channel)) { error("ERROR: Failed to start FDR listener thread\n"); - fdr_thread = NULL; /* undefined after failure */ + fdr_thread = (thread_t)NULL; /* undefined after failure */ } } else { error("ERROR: Failed to start FDR Ctrl channel\n"); -- cgit v1.1-32-gdbae