Rename do_wait_when_needed() to better wait_for_operation_to_complete()
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index 671b6fb..bb28407 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -234,7 +234,7 @@
 	return 0;
 }
 
-static void do_wait_when_needed()
+static void idevice_wait_for_operation_to_complete()
 {
 	int i = 0;
 	struct timespec ts;
@@ -1146,7 +1146,7 @@
 			notification_expected = 1;
 		}
 
-		do_wait_when_needed();
+		idevice_wait_for_operation_to_complete();
 
 		if (copy_path) {
 			if (err_occured) {
@@ -1298,7 +1298,7 @@
 		client = NULL;
 	}
 
-	do_wait_when_needed();
+	idevice_wait_for_operation_to_complete();
 
   leave_cleanup:
 	if (np) {