Changed to work with vxWorks 5.1 and GCC 2.2.3.
This commit is contained in:
@@ -179,7 +179,7 @@ SPROG *pSP;
|
||||
/*
|
||||
* seqProgListInit() - initialize the state program list.
|
||||
*/
|
||||
LOCAL seqProgListInit()
|
||||
seqProgListInit()
|
||||
{
|
||||
/* Init linked list */
|
||||
lstInit(&seqProgList);
|
||||
|
||||
@@ -86,7 +86,7 @@ int tid;
|
||||
((pSP->options & OPT_REENT) != 0), ((pSP->options & OPT_CONN) != 0),
|
||||
((pSP->options & OPT_NEWEF) != 0) );
|
||||
printf(" log file fd=%d\n", pSP->logFd);
|
||||
status = ioctl(pSP->logFd, FIOGETNAME, file_name);
|
||||
status = ioctl(pSP->logFd, FIOGETNAME, (int)file_name);
|
||||
if (status != ERROR)
|
||||
printf(" log file name=\"%s\"\n", file_name);
|
||||
|
||||
@@ -298,7 +298,7 @@ int type;
|
||||
}
|
||||
|
||||
/* Find a state program associated with a given task id */
|
||||
LOCAL SPROG *seqQryFind(tid)
|
||||
SPROG *seqQryFind(tid)
|
||||
int tid;
|
||||
{
|
||||
SPROG *pSP;
|
||||
@@ -356,7 +356,7 @@ SPROG *pSP;
|
||||
}
|
||||
|
||||
/* Print a brief summary of all state programs */
|
||||
LOCAL seqShowAll()
|
||||
seqShowAll()
|
||||
{
|
||||
SPROG *pSP;
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ char *ptask_name; /* Parent task name */
|
||||
SPAWN_PRIORITY+pSS->task_priority, /* priority */
|
||||
SPAWN_OPTIONS, /* task options */
|
||||
stack_size, /* stack size */
|
||||
(int)ss_entry, /* entry point */
|
||||
(FUNCPTR)ss_entry, /* entry point */
|
||||
(int)pSP,
|
||||
(int)pSS, /* pass 2 parameters */
|
||||
0,0,0,0,0,0,0,0);
|
||||
|
||||
Reference in New Issue
Block a user