2000-08-10
2000-08-10 18:30:42 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
89fc4c6ce1abebc1c387959e71563dc142efabb5
(15 lines)
(+8/-7)
[
Show
| Annotate
]
Branch: 7.9
Fixed a few warnings.
Rev: src/builtin.cmod:1.9
Rev: src/queue.c:1.6
Rev: src/stralloc.c:1.95
Rev: src/stralloc.h:1.54
Rev: src/threads.c:1.135
1:
#include "global.h"
- RCSID("$Id: threads.c,v 1.134 2000/08/10 09:51:52 per Exp $");
+ RCSID("$Id: threads.c,v 1.135 2000/08/10 18:25:17 grubba Exp $");
PMOD_EXPORT int num_threads = 1;
PMOD_EXPORT int threads_disabled = 0;
213: Inside #if defined(POSIX_THREADS)
pthread_attr_t pattr;
pthread_attr_t small_pattr;
#endif
- PMOD_EXPORT int thread_storage_offset;
+ PMOD_EXPORT ptrdiff_t thread_storage_offset;
struct thread_starter
{
528:
ref_push_object(o);
}
mt_unlock( & thread_table_lock );
- f_aggregate(Pike_sp-oldsp);
+ f_aggregate(DO_NOT_WARN(Pike_sp - oldsp));
}
678:
mt_unlock_interpreter();
th_exit(0);
/* NOT_REACHED, but removes a warning */
- return(NULL);
+ return(0);
}
#ifdef UNIX_THREADS
1221:
void th_init(void)
{
struct program *tmp;
- INT32 mutex_key_offset;
+ ptrdiff_t mutex_key_offset;
#ifdef UNIX_THREADS
1429:
--_num_farmers;
mt_unlock( &rosie );
free( me );
- return NULL;
+ return 0;
}
me->neighbour = farmers;
farmers = me;
1440:
/* fprintf(stderr, "farm_endwait %p\n", me); */
} while(1);
/* NOT_REACHED */
- return NULL;/* Keep the compiler happy. */
+ return 0;/* Keep the compiler happy. */
}
int th_num_idle_farmers(void)