Fixes suggested by thomasvs to get rhythmbox working with basic threads

Original commit message from CVS:
Fixes suggested by thomasvs to get rhythmbox working with basic threads

- int res;
+ int res = 0;

-  res = munmap ((void *) thread, COTHREAD_STACKSIZE);
+/*    res = munmap ((void *) thread, COTHREAD_STACKSIZE); */
This commit is contained in:
Christian Schaller 2002-06-27 21:35:56 +00:00
parent 8433fe5775
commit 7cc370b0bf

View file

@ -267,7 +267,7 @@ cothread_destroy (cothread_state *thread)
else {
/* this doesn't seem to work very well */
/* munmap ((void *) thread, COTHREAD_STACKSIZE); */
int res;
int res = 0;
GST_DEBUG (GST_CAT_COTHREADS,
"unmap cothread slot stack from %p to %p (size %ld)",
@ -275,7 +275,7 @@ cothread_destroy (cothread_state *thread)
(long) COTHREAD_STACKSIZE);
GST_DEBUG (GST_CAT_COTHREADS, "doing an munmap at %p of size %d\n",
thread, COTHREAD_STACKSIZE);
res = munmap ((void *) thread, COTHREAD_STACKSIZE);
/* res = munmap ((void *) thread, COTHREAD_STACKSIZE); */
if (res != 0)
{
switch (res)