"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/imm/immnd/ImmAttrValue.cc" between
opensaf-5.21.06.tar.gz and opensaf-5.21.09.tar.gz

About: OpenSAF is a project focused on Service Availability (SA) that develops middleware based on open and industry standard interfaces for applications requiring uninterrupted 24x7 service.

ImmAttrValue.cc  (opensaf-5.21.06):ImmAttrValue.cc  (opensaf-5.21.09)
skipping to change at line 105 skipping to change at line 105
} }
int ImmAttrValue::getValue_int() const { int ImmAttrValue::getValue_int() const {
if (mValueSize != sizeof(int)) { if (mValueSize != sizeof(int)) {
return 0; return 0;
} }
return *((int*)mValue); return *((int*)mValue);
} }
void ImmAttrValue::setValue_satimet(SaTimeT i) {
if (mValue && mValueSize != sizeof(SaTimeT)) {
delete[] mValue;
mValue = 0;
mValueSize = 0;
}
if (!mValue) {
mValueSize = sizeof(SaTimeT);
mValue = new char[mValueSize];
}
*(reinterpret_cast<SaTimeT*>(mValue)) = i;
}
SaTimeT ImmAttrValue::getValue_satimet() const {
if (mValueSize != sizeof(SaTimeT)) {
return 0;
}
return *(reinterpret_cast<SaTimeT*>(mValue));
}
void ImmAttrValue::setValueC_str(const char* str) { void ImmAttrValue::setValueC_str(const char* str) {
if (mValue) { if (mValue) {
if (str) { if (str) {
if (strncmp(mValue, str, mValueSize) == 0) { if (strncmp(mValue, str, mValueSize) == 0) {
return; return;
} // Already equal } // Already equal
} }
delete[] mValue; delete[] mValue;
mValue = 0; mValue = 0;
mValueSize = 0; mValueSize = 0;
 End of changes. 1 change blocks. 
0 lines changed or deleted 22 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)