vxworks changes

git-svn-id: svn://svn.savannah.nongnu.org/osip/trunk/osip@73 a617929b-4c5a-41d8-b177-2eda7db2ca6c
This commit is contained in:
aymeric
2002-06-23 00:28:45 +00:00
parent 67d2a7efcc
commit 91c5e95cea
2 changed files with 2 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
libosip (0.8.8)
* vxworks minor patches.
* nict.c and ict.c: fix a bug with the setting of the port.
* fsm/dialog.c: if 1xx answer does not contain the route set, update
it when the 200 OK comes in.

View File

@@ -154,7 +154,7 @@ void sthread_exit()
sthread_t *
sthread_create(int stacksize, sthread_t *thread, void *(*func)(void *), void *arg)
{
if (thread!=NULL)
if (thread==NULL)
thread = (sthread_t *) smalloc(sizeof(sthread_t));
thread->id = taskSpawn(NULL,5,0,stacksize,(FUNCPTR)func,(int)arg,0,0,0,0,0,0,0,0,0);
if (thread->id<0) sfree(thread);