project_files/HedgewarsMobile/Classes/MapPreviewButtonView.m
changeset 7248 0ee403b190b5
parent 6841 3633928a3188
child 8441 a00b0fa0dbd7
--- 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);