Fixed/suppressed HP-UX (GNU) warnings

This commit is contained in:
Ralph Lange
2003-04-23 15:22:56 +00:00
parent 2624a16170
commit 8e44835903
4 changed files with 14 additions and 12 deletions

View File

@@ -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");

View File

@@ -29,7 +29,7 @@ typedef struct initHookLink {
initHookFunction func;
} initHookLink;
static functionListInited = FALSE;
static int functionListInited = FALSE;
static ELLLIST functionList;
static void initFunctionList(void)

View File

@@ -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--;
}

View File

@@ -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;