--- a/project_files/HedgewarsMobile/Classes/MapPreviewButtonView.m Thu Jun 14 00:21:23 2012 +0200
+++ b/project_files/HedgewarsMobile/Classes/MapPreviewButtonView.m Thu Jun 14 00:34:50 2012 +0200
@@ -85,7 +85,7 @@
// launch the preview here so that we're sure the tcp channel is open
pthread_t thread_id;
- pthread_create(&thread_id, NULL, (void *)GenLandPreview, (void *)port);
+ pthread_create(&thread_id, NULL, (void *(*)(void *))GenLandPreview, (void *)port);
pthread_detach(thread_id);
DLog(@"Waiting for a client on port %d", port);