blob: 871ab43dc525567838f832950b3bd79b5c06c8db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- src/main.c.orig Tue Jan 23 04:45:05 2007
+++ src/main.c Tue Jan 23 04:46:29 2007
@@ -168,7 +168,7 @@
retval = pthread_create (&thrd_data[i].thrd,
NULL,
thrd_func,
- (void *)i);
+ (void *)(intptr_t)i);
if (retval != 0) {
printf ("Hrm: error creating thread %d\n", i);
exit (-1);
@@ -178,7 +178,7 @@
retval = pthread_create (&thrd_data[i].monitor_thrd,
NULL,
monitor_thrd_func,
- (void *)i);
+ (void *)(intptr_t)i);
if (retval != 0) {
printf ("Hrm: error creating monitor thread %d\n", i);
exit (-1);
|