diff --git a/src/bpt/makeBpt.c b/src/bpt/makeBpt.c index cf5c4218d..26e91eea7 100644 --- a/src/bpt/makeBpt.c +++ b/src/bpt/makeBpt.c @@ -62,7 +62,7 @@ static int getNumber(char **pbeg, double *value) { int nchars=0; - while(isspace(**pbeg) && **pbeg!= '\0') (*pbeg)++; + while(isspace((int)**pbeg) && **pbeg!= '\0') (*pbeg)++; if(**pbeg == '!' || **pbeg == '\0') return(-1); if(sscanf(*pbeg,"%lf%n",value,&nchars)!=1) return(-1); *pbeg += nchars; @@ -130,7 +130,7 @@ int main(argc, argv) linenum++; inbuf[strlen(inbuf)] = '\0'; /* remove newline*/ pbeg = inbuf; - while(isspace(*pbeg) && *pbeg!= '\0') pbeg++; + while(isspace((int)*pbeg) && *pbeg!= '\0') pbeg++; if(*pbeg == '!' || *pbeg == '\0') continue; while(*pbeg!='"' && *pbeg!= '\0') pbeg++; if(*pbeg!='"' ) errExit("Illegal Header"); diff --git a/src/db/initHooks.c b/src/db/initHooks.c index 2468a16cb..0168ae2c0 100644 --- a/src/db/initHooks.c +++ b/src/db/initHooks.c @@ -29,7 +29,7 @@ typedef struct initHookLink { initHookFunction func; } initHookLink; -static functionListInited = FALSE; +static int functionListInited = FALSE; static ELLLIST functionList; static void initFunctionList(void) diff --git a/src/dbStatic/dbStaticLib.c b/src/dbStatic/dbStaticLib.c index 5668ded39..fd0b35a54 100644 --- a/src/dbStatic/dbStaticLib.c +++ b/src/dbStatic/dbStaticLib.c @@ -777,7 +777,7 @@ long epicsShareAPI dbAddPath(DBBASE *pdbbase,const char *path) int len; /* preceding white space is removed */ - if (isspace(*path)) { + if (isspace((int)*path)) { path++; continue; } @@ -795,7 +795,7 @@ long epicsShareAPI dbAddPath(DBBASE *pdbbase,const char *path) expectingPath = FALSE; } /* trailing white space is removed */ - while (isspace(*plast)) { + while (isspace((int)*plast)) { plast--; } diff --git a/src/rsrv/caservertask.c b/src/rsrv/caservertask.c index 898d71247..a13723582 100644 --- a/src/rsrv/caservertask.c +++ b/src/rsrv/caservertask.c @@ -460,15 +460,17 @@ void epicsShareAPI casr (unsigned level) bytes_reserved += rsrvSizeOfPutNotify ( 0 ) * freeListItemsAvail ( rsrvPutNotifyFreeList ); printf( "There are currently %u bytes on the server's free list\n", - bytes_reserved); + (unsigned int) bytes_reserved); printf( "%u client(s), %u channel(s), %u event(s) (monitors) %u putNotify(s)\n", - freeListItemsAvail (rsrvClientFreeList), - freeListItemsAvail (rsrvChanFreeList), - freeListItemsAvail (rsrvEventFreeList), - freeListItemsAvail ( rsrvPutNotifyFreeList )); + (unsigned int) freeListItemsAvail ( rsrvClientFreeList ), + (unsigned int) freeListItemsAvail ( rsrvChanFreeList ), + (unsigned int) freeListItemsAvail ( rsrvEventFreeList ), + (unsigned int) freeListItemsAvail ( rsrvPutNotifyFreeList )); printf( "%u small buffers (%u bytes ea), and %u jumbo buffers (%u bytes ea)\n", - freeListItemsAvail ( rsrvSmallBufFreeListTCP ), MAX_TCP, - freeListItemsAvail ( rsrvLargeBufFreeListTCP ), rsrvSizeofLargeBufTCP ); + (unsigned int) freeListItemsAvail ( rsrvSmallBufFreeListTCP ), + MAX_TCP, + (unsigned int) freeListItemsAvail ( rsrvLargeBufFreeListTCP ), + rsrvSizeofLargeBufTCP ); if(pCaBucket){ printf( "The server's resource id conversion table:\n"); LOCK_CLIENTQ;