ioc: Fix more MSVC 12.0 warnings

This commit is contained in:
Ralph Lange
2014-06-04 21:18:43 +02:00
parent 32c2775940
commit 41bd895cd5
9 changed files with 111 additions and 110 deletions

View File

@@ -87,7 +87,8 @@ int main(int argc, char **argv)
dataList *pnext;
double *pdata;
long ndata;
int nBreak,len,n;
int nBreak,n;
size_t len;
char *outFilename;
char *pext;
FILE *outFile;

View File

@@ -818,7 +818,7 @@ void dbPrint(dbCommon *precord )
long dbp(const char *record_name, int interest_level)
{
struct LS_LIST *pnode;
struct dbCommon *precord;
struct dbCommon *precord = NULL;
int status;
epicsMutexMustLock(bkpt_stack_sem);

View File

@@ -300,7 +300,7 @@ long dbCaGetLink(struct link *plink,short dbrType, void *pdest,
assert(pca->pgetNative);
status = fConvert(pca->pgetNative, pdest, 0);
} else {
unsigned long ntoget = *nelements;
long ntoget = *nelements;
struct dbAddr dbAddr;
long (*aConvert)(struct dbAddr *paddr, void *to, long nreq, long nto, long off);

View File

@@ -839,12 +839,12 @@ static long getShortChar(
short *psrc=(short *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (char)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (char)*psrc++;
if(++offset==no_elements) psrc=(short *)paddr->pfield;
nRequest--;
}
@@ -859,12 +859,12 @@ static long getShortUchar(
short *psrc=(short *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (unsigned char)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (unsigned char)*psrc++;
if(++offset==no_elements) psrc=(short *)paddr->pfield;
nRequest--;
}
@@ -1042,12 +1042,12 @@ static long getUshortChar(
unsigned short *psrc=(unsigned short *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (char)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (char)*psrc++;
if(++offset==no_elements) psrc=(unsigned short *)paddr->pfield;
nRequest--;
}
@@ -1062,12 +1062,12 @@ static long getUshortUchar(
unsigned short *psrc=(unsigned short *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (unsigned char)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (unsigned char)*psrc++;
if(++offset==no_elements) psrc=(unsigned short *)paddr->pfield;
nRequest--;
}
@@ -1365,12 +1365,12 @@ static long getLongFloat(
epicsInt32 *psrc=(epicsInt32 *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (float)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (float)*psrc++;
if(++offset==no_elements) psrc=(epicsInt32 *)paddr->pfield;
nRequest--;
}
@@ -1569,12 +1569,12 @@ static long getUlongFloat(
epicsUInt32 *psrc=(epicsUInt32 *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (float)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (float)*psrc++;
if(++offset==no_elements) psrc=(epicsUInt32 *)paddr->pfield;
nRequest--;
}
@@ -1659,12 +1659,12 @@ static long getFloatChar(
float *psrc=(float *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (char)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (char)*psrc++;
if(++offset==no_elements) psrc=(float *)paddr->pfield;
nRequest--;
}
@@ -1679,12 +1679,12 @@ static long getFloatUchar(
float *psrc=(float *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (unsigned char)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (unsigned char)*psrc++;
if(++offset==no_elements) psrc=(float *)paddr->pfield;
nRequest--;
}
@@ -1699,12 +1699,12 @@ static long getFloatShort(
float *psrc=(float *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (short)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (short)*psrc++;
if(++offset==no_elements) psrc=(float *)paddr->pfield;
nRequest--;
}
@@ -1719,12 +1719,12 @@ static long getFloatUshort(
float *psrc=(float *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (unsigned short)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (unsigned short)*psrc++;
if(++offset==no_elements) psrc=(float *)paddr->pfield;
nRequest--;
}
@@ -1739,12 +1739,12 @@ static long getFloatLong(
float *psrc=(float *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (epicsInt32)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (epicsInt32)*psrc++;
if(++offset==no_elements) psrc=(float *)paddr->pfield;
nRequest--;
}
@@ -1759,12 +1759,12 @@ static long getFloatUlong(
float *psrc=(float *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (epicsUInt32)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (epicsUInt32)*psrc++;
if(++offset==no_elements) psrc=(float *)paddr->pfield;
nRequest--;
}
@@ -1819,12 +1819,12 @@ static long getFloatEnum(
float *psrc=(float *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (epicsEnum16)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (epicsEnum16)*psrc++;
if(++offset==no_elements) psrc=(float *)paddr->pfield;
nRequest--;
}
@@ -1869,12 +1869,12 @@ static long getDoubleChar(
double *psrc=(double *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (char)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (char)*psrc++;
if(++offset==no_elements) psrc=(double *)paddr->pfield;
nRequest--;
}
@@ -1889,12 +1889,12 @@ static long getDoubleUchar(
double *psrc=(double *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (unsigned char)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (unsigned char)*psrc++;
if(++offset==no_elements) psrc=(double *)paddr->pfield;
nRequest--;
}
@@ -1909,12 +1909,12 @@ static long getDoubleShort(
double *psrc=(double *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (short)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (short)*psrc++;
if(++offset==no_elements) psrc=(double *)paddr->pfield;
nRequest--;
}
@@ -1929,12 +1929,12 @@ static long getDoubleUshort(
double *psrc=(double *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (unsigned short)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (unsigned short)*psrc++;
if(++offset==no_elements) psrc=(double *)paddr->pfield;
nRequest--;
}
@@ -2030,12 +2030,12 @@ static long getDoubleEnum(
double *psrc=(double *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (epicsEnum16)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (epicsEnum16)*psrc++;
if(++offset==no_elements) psrc=(double *)paddr->pfield;
nRequest--;
}
@@ -2065,12 +2065,12 @@ static long getEnumChar(
epicsEnum16 *psrc=(epicsEnum16 *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (char)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (char)*psrc++;
if(++offset==no_elements) psrc=(epicsEnum16 *)paddr->pfield;
nRequest--;
}
@@ -2085,12 +2085,12 @@ static long getEnumUchar(
epicsEnum16 *psrc=(epicsEnum16 *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pbuffer = *psrc;
*pbuffer = (unsigned char)*psrc;
return(0);
}
psrc += offset;
while (nRequest) {
*pbuffer++ = *psrc++;
*pbuffer++ = (unsigned char)*psrc++;
if(++offset==no_elements) psrc=(epicsEnum16 *)paddr->pfield;
nRequest--;
}
@@ -3143,12 +3143,12 @@ static long putShortChar(
char *pdest=(char *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (char)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (char)*pbuffer++;
if(++offset==no_elements) pdest=(char *)paddr->pfield;
nRequest--;
}
@@ -3163,12 +3163,12 @@ static long putShortUchar(
unsigned char *pdest=(unsigned char *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (unsigned char)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (unsigned char)*pbuffer++;
if(++offset==no_elements) pdest=(unsigned char *)paddr->pfield;
nRequest--;
}
@@ -3349,12 +3349,12 @@ static long putUshortChar(
char *pdest=(char *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (char)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (char)*pbuffer++;
if(++offset==no_elements) pdest=(char *)paddr->pfield;
nRequest--;
}
@@ -3369,12 +3369,12 @@ static long putUshortUchar(
unsigned char *pdest=(unsigned char *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (unsigned char)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (unsigned char)*pbuffer++;
if(++offset==no_elements) pdest=(unsigned char *)paddr->pfield;
nRequest--;
}
@@ -3675,12 +3675,12 @@ static long putLongFloat(
float *pdest=(float *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (float)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (float)*pbuffer++;
if(++offset==no_elements) pdest=(float *)paddr->pfield;
nRequest--;
}
@@ -3881,12 +3881,12 @@ static long putUlongFloat(
float *pdest=(float *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (float)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (float)*pbuffer++;
if(++offset==no_elements) pdest=(float *)paddr->pfield;
nRequest--;
}
@@ -3972,12 +3972,12 @@ static long putFloatChar(
char *pdest=(char *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (char)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (char)*pbuffer++;
if(++offset==no_elements) pdest=(char *)paddr->pfield;
nRequest--;
}
@@ -3992,12 +3992,12 @@ static long putFloatUchar(
unsigned char *pdest=(unsigned char *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (unsigned char)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (unsigned char)*pbuffer++;
if(++offset==no_elements) pdest=(unsigned char *)paddr->pfield;
nRequest--;
}
@@ -4012,12 +4012,12 @@ static long putFloatShort(
short *pdest=(short *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (short)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (short)*pbuffer++;
if(++offset==no_elements) pdest=(short *)paddr->pfield;
nRequest--;
}
@@ -4032,12 +4032,12 @@ static long putFloatUshort(
unsigned short *pdest=(unsigned short *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (unsigned short)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (unsigned short)*pbuffer++;
if(++offset==no_elements) pdest=(unsigned short *)paddr->pfield;
nRequest--;
}
@@ -4052,12 +4052,12 @@ static long putFloatLong(
epicsInt32 *pdest=(epicsInt32 *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (epicsInt32)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (epicsInt32)*pbuffer++;
if(++offset==no_elements) pdest=(epicsInt32 *)paddr->pfield;
nRequest--;
}
@@ -4072,12 +4072,12 @@ static long putFloatUlong(
epicsUInt32 *pdest=(epicsUInt32 *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (epicsUInt32)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (epicsUInt32)*pbuffer++;
if(++offset==no_elements) pdest=(epicsUInt32 *)paddr->pfield;
nRequest--;
}
@@ -4132,12 +4132,12 @@ static long putFloatEnum(
epicsEnum16 *pdest=(epicsEnum16 *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (epicsEnum16)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (epicsEnum16)*pbuffer++;
if(++offset==no_elements) pdest=(epicsEnum16 *)paddr->pfield;
nRequest--;
}
@@ -4183,12 +4183,12 @@ static long putDoubleChar(
char *pdest=(char *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (char)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (char)*pbuffer++;
if(++offset==no_elements) pdest=(char *)paddr->pfield;
nRequest--;
}
@@ -4203,12 +4203,12 @@ static long putDoubleUchar(
unsigned char *pdest=(unsigned char *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (unsigned char)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (unsigned char)*pbuffer++;
if(++offset==no_elements) pdest=(unsigned char *)paddr->pfield;
nRequest--;
}
@@ -4223,12 +4223,12 @@ static long putDoubleShort(
short *pdest=(short *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (short)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (short)*pbuffer++;
if(++offset==no_elements) pdest=(short *)paddr->pfield;
nRequest--;
}
@@ -4243,12 +4243,12 @@ static long putDoubleUshort(
unsigned short *pdest=(unsigned short *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (unsigned short)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (unsigned short)*pbuffer++;
if(++offset==no_elements) pdest=(unsigned short *)paddr->pfield;
nRequest--;
}
@@ -4344,12 +4344,12 @@ static long putDoubleEnum(
epicsEnum16 *pdest=(epicsEnum16 *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (epicsEnum16)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (epicsEnum16)*pbuffer++;
if(++offset==no_elements) pdest=(epicsEnum16 *)paddr->pfield;
nRequest--;
}
@@ -4390,12 +4390,12 @@ static long putEnumChar(
char *pdest=(char *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (char)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (char)*pbuffer++;
if(++offset==no_elements) pdest=(char *)paddr->pfield;
nRequest--;
}
@@ -4410,12 +4410,12 @@ static long putEnumUchar(
unsigned char *pdest=(unsigned char *)(paddr->pfield);
if(nRequest==1 && offset==0) {
*pdest = *pbuffer;
*pdest = (unsigned char)*pbuffer;
return(0);
}
pdest += offset;
while (nRequest) {
*pdest++ = *pbuffer++;
*pdest++ = (unsigned char)*pbuffer++;
if(++offset==no_elements) pdest=(unsigned char *)paddr->pfield;
nRequest--;
}

View File

@@ -509,14 +509,14 @@ static long cvt_s_c(
epicsInt16 *from,
epicsInt8 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsInt8)*from; return(0); }
/* Convert Short to Unsigned Char */
static long cvt_s_uc(
epicsInt16 *from,
epicsUInt8 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsUInt8)*from; return(0); }
/* Convert Short to Short */
static long cvt_s_s(
@@ -579,14 +579,14 @@ static long cvt_us_c(
epicsUInt16 *from,
epicsInt8 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsInt8)*from; return(0); }
/* Convert Unsigned Short to Unsigned Char */
static long cvt_us_uc(
epicsUInt16 *from,
epicsUInt8 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsUInt8)*from; return(0); }
/* Convert Unsigned Short to Short */
static long cvt_us_s(
@@ -691,7 +691,7 @@ static long cvt_l_f(
epicsInt32 *from,
epicsFloat32 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsFloat32)*from; return(0); }
/* Convert Long to Double */
static long cvt_l_d(
@@ -761,7 +761,7 @@ static long cvt_ul_f(
epicsUInt32 *from,
epicsFloat32 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsFloat32)*from; return(0); }
/* Convert Unsigned Long to Double */
static long cvt_ul_d(
@@ -791,7 +791,7 @@ static long cvt_f_st(
if (prset && prset->get_precision)
status = (*prset->get_precision)(paddr, &precision);
cvtFloatToString(*from, to, precision);
cvtFloatToString(*from, to, (unsigned short)precision);
return(status);
}
@@ -800,42 +800,42 @@ static long cvt_f_c(
epicsFloat32 *from,
epicsInt8 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsInt8)*from; return(0); }
/* Convert Float to Unsigned Char */
static long cvt_f_uc(
epicsFloat32 *from,
epicsUInt8 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsUInt8)*from; return(0); }
/* Convert Float to Short */
static long cvt_f_s(
epicsFloat32 *from,
epicsInt16 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsInt16)*from; return(0); }
/* Convert Float to Unsigned Short */
static long cvt_f_us(
epicsFloat32 *from,
epicsUInt16 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsUInt16)*from; return(0); }
/* Convert Float to Long */
static long cvt_f_l(
epicsFloat32 *from,
epicsInt32 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsInt32)*from; return(0); }
/* Convert Float to Unsigned Long */
static long cvt_f_ul(
epicsFloat32 *from,
epicsUInt32 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsUInt32)*from; return(0); }
/* Convert Float to Float */
static long cvt_f_f(
@@ -856,7 +856,7 @@ static long cvt_f_e(
epicsFloat32 *from,
epicsEnum16 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsEnum16)*from; return(0); }
/* Convert Double to String */
static long cvt_d_st(
@@ -872,7 +872,7 @@ static long cvt_d_st(
if (prset && prset->get_precision)
status = (*prset->get_precision)(paddr, &precision);
cvtDoubleToString(*from, to, precision);
cvtDoubleToString(*from, to, (unsigned short)precision);
return(status);
}
@@ -881,28 +881,28 @@ static long cvt_d_c(
epicsFloat64 *from,
epicsInt8 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsInt8)*from; return(0); }
/* Convert Double to Unsigned Char */
static long cvt_d_uc(
epicsFloat64 *from,
epicsUInt8 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsUInt8)*from; return(0); }
/* Convert Double to Short */
static long cvt_d_s(
epicsFloat64 *from,
epicsInt16 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsInt16)*from; return(0); }
/* Convert Double to Unsigned Short */
static long cvt_d_us(
epicsFloat64 *from,
epicsUInt16 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsUInt16)*from; return(0); }
/* Convert Double to Long */
static long cvt_d_l(
@@ -937,21 +937,21 @@ static long cvt_d_e(
epicsFloat64 *from,
epicsEnum16 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsEnum16)*from; return(0); }
/* Convert Enumerated to Char */
static long cvt_e_c(
epicsEnum16 *from,
epicsInt8 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsInt8)*from; return(0); }
/* Convert Enumerated to Unsigned Char */
static long cvt_e_uc(
epicsEnum16 *from,
epicsUInt8 *to,
const dbAddr *paddr)
{ *to=*from; return(0); }
{ *to=(epicsUInt8)*from; return(0); }
/* Convert Enumerated to Short */
static long cvt_e_s(

View File

@@ -1286,7 +1286,7 @@ static void dbpr_msgOut(TAB_BUFFER *pMsgBuff,int tab_size)
if (err == 1) {
len = strlen(pmsg);
sprintf(pmsg, "dbpr_msgOut: ERROR - msg length=%d limit=%d ",
len, MAXLINE);
(int)len, MAXLINE);
dbpr_insert_msg(pMsgBuff, len, tab_size);
}
}

View File

@@ -344,7 +344,7 @@ static int db_yyinput(char *buf, int max_size)
n = (l<=max_size ? l : max_size);
memcpy(buf,my_buffer_ptr,n);
my_buffer_ptr += n;
return(n);
return (int)n;
}
static void dbIncludePrint(void)

View File

@@ -311,7 +311,7 @@ static void inputAddPath(inputData *pinputData, char *path)
pathNode *ppathNode;
const char *pcolon;
const char *pdir;
int len;
size_t len;
int emptyName;
const char sep = *OSI_PATH_LIST_SEPARATOR;

View File

@@ -886,7 +886,7 @@ static int write_action ( caHdrLargeArray *mp,
static int host_name_action ( caHdrLargeArray *mp, void *pPayload,
struct client *client )
{
unsigned size;
size_t size;
char *pName;
char *pMalloc;
int chanCount;
@@ -965,7 +965,7 @@ static int host_name_action ( caHdrLargeArray *mp, void *pPayload,
static int client_name_action ( caHdrLargeArray *mp, void *pPayload,
struct client *client )
{
unsigned size;
size_t size;
char *pName;
char *pMalloc;
int chanCount;