Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
32d93d9028 | |||
3d30827798 | |||
b688f14c22 | |||
f5da2ea6b3 | |||
4edd2f2eff |
@ -73,7 +73,7 @@ public:
|
||||
{init(NULL, size);}
|
||||
|
||||
~StreamBuffer()
|
||||
{if (buffer != local) delete buffer;}
|
||||
{if (buffer != local) delete [] buffer;}
|
||||
|
||||
// operator (): get char* pointing to index
|
||||
const char* operator()(ssize_t index=0) const
|
||||
|
@ -534,11 +534,11 @@ long streamInitRecord(dbCommon* record, const struct link *ioLink,
|
||||
streamIoFunction readData, streamIoFunction writeData)
|
||||
{
|
||||
long status;
|
||||
char filename[80];
|
||||
char protocol[80];
|
||||
char busname[80];
|
||||
char filename[256];
|
||||
char protocol[256];
|
||||
char busname[256];
|
||||
int addr = -1;
|
||||
char busparam[80];
|
||||
char busparam[256];
|
||||
memset(busparam, 0 ,sizeof(busparam));
|
||||
|
||||
debug("streamInitRecord(%s): SEVR=%d\n", record->name, record->sevr);
|
||||
|
@ -42,7 +42,7 @@ static long readData(dbCommon *record, format_t *format)
|
||||
return OK;
|
||||
}
|
||||
case DBF_LONG:
|
||||
case DBF_UONG:
|
||||
case DBF_ULONG:
|
||||
case DBF_ENUM:
|
||||
{
|
||||
long lval;
|
||||
@ -72,7 +72,7 @@ static long writeData(dbCommon *record, format_t *format)
|
||||
return streamPrintf(record, format, sco->oval);
|
||||
}
|
||||
case DBF_LONG:
|
||||
case DBF_UONG:
|
||||
case DBF_ULONG:
|
||||
case DBF_ENUM:
|
||||
{
|
||||
return streamPrintf(record, format, (long)sco->oval);
|
||||
|
Reference in New Issue
Block a user