fixed compiler warnings
This commit is contained in:
@@ -32,6 +32,7 @@ of this distribution.
|
||||
#include "error.h"
|
||||
#include "ellLib.h"
|
||||
#include "errlog.h"
|
||||
#include "logClient.h"
|
||||
|
||||
|
||||
#ifndef LOCAL
|
||||
@@ -268,10 +269,11 @@ epicsShareFunc void epicsShareAPIV errPrintf(long status, const char *pFileName,
|
||||
|
||||
rtnval = errSymFind(status,name);
|
||||
if(rtnval) {
|
||||
unsigned short modnum,errnum;
|
||||
unsigned modnum, errnum;
|
||||
|
||||
modnum = status >> 16; errnum = status & 0xffff;
|
||||
nchar = sprintf(pnext, "status (%hu,%hu) not in symbol table ",
|
||||
modnum = (unsigned) ((status >> 16) & 0xffff);
|
||||
errnum = (unsigned) (status & 0xffff);
|
||||
nchar = sprintf(pnext, "status (%u,%u) not in symbol table ",
|
||||
modnum, errnum);
|
||||
} else {
|
||||
nchar = sprintf(pnext,"%s ",name);
|
||||
@@ -311,7 +313,6 @@ epicsShareFunc int epicsShareAPI errlogInit(int bufsize)
|
||||
threadCreate("errlog",threadPriorityLow,
|
||||
threadGetStackSize(threadStackSmall),
|
||||
(THREADFUNC)errlogTask,0);
|
||||
/*For now make sure iocLogInit is called*/
|
||||
iocLogInit();
|
||||
|
||||
return(0);
|
||||
|
||||
@@ -184,6 +184,7 @@ void logClientReset (logClient *pClient)
|
||||
/*
|
||||
* logClientDestroy
|
||||
*/
|
||||
# ifndef vxWorks
|
||||
LOCAL void logClientDestroy (logClient *pClient)
|
||||
{
|
||||
/*
|
||||
@@ -197,6 +198,7 @@ LOCAL void logClientDestroy (logClient *pClient)
|
||||
|
||||
free (pClient);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* logClientShutdown()
|
||||
@@ -547,7 +549,6 @@ epicsShareFunc logClientId epicsShareAPI logClientInit ()
|
||||
static const unsigned maxConnectTries = 40u;
|
||||
static const unsigned microSecDelay = 50000u;
|
||||
static const unsigned secDelay = 0u;
|
||||
static const double uSecPerSec = 1000000.0;
|
||||
unsigned connectTries = 0;
|
||||
logClient *pClient;
|
||||
logClientId id;
|
||||
|
||||
Reference in New Issue
Block a user