Fixed/suppressed HP-UX (GNU) warnings
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -29,7 +29,7 @@ typedef struct initHookLink {
|
||||
initHookFunction func;
|
||||
} initHookLink;
|
||||
|
||||
static functionListInited = FALSE;
|
||||
static int functionListInited = FALSE;
|
||||
static ELLLIST functionList;
|
||||
|
||||
static void initFunctionList(void)
|
||||
|
||||
@@ -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--;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user