
2 Mar
2008
2 Mar
'08
6:36 p.m.
Juergen, Frank,
Below are Libsmi I made to be able to build libsmi with cl msdev windows.
More to come.
Regards,
--
- Yigal
....................
cd c:/yigal/dmh-libsmi/libsmi-0.4.6/lib/
diff -c "c:/yigal/dmh-libsmi/libsmi-0.4.6/lib/smi.c.~1~" "c:/yigal/dmh-libsmi/libsmi-0.4.6/lib/smi.c"
*** c:/yigal/dmh-libsmi/libsmi-0.4.6/lib/smi.c.~1~ Thu Feb 28 21:34:01 2008
--- c:/yigal/dmh-libsmi/libsmi-0.4.6/lib/smi.c Sat Mar 1 16:59:51 2008
***************
*** 1082,1096 ****
return &attributePtr->export;
}
! SmiType *smiGetAttributeParentType(SmiAttribute *smiAttributePtr)
{
!
if (!smiAttributePtr) {
return NULL;
}
! Type *parentTypePtr = ((Attribute*)smiAttributePtr)->parentTypePtr;
if(parentTypePtr)
return &parentTypePtr->export;
--- 1082,1096 ----
return &attributePtr->export;
}
! SmiType *smiGetAttributeParentType(SmiAttribute *smiAttributePtr)
{
! Type *parentTypePtr;
if (!smiAttributePtr) {
return NULL;
}
! parentTypePtr = ((Attribute*)smiAttributePtr)->parentTypePtr;
if(parentTypePtr)
return &parentTypePtr->export;
***************
*** 1100,1110 ****
SmiClass *smiGetAttributeParentClass( SmiAttribute *smiAttributePtr)
{
if (!smiAttributePtr) {
return NULL;
}
! Class *parentClassPtr=((Attribute*)smiAttributePtr)->parentClassPtr;
if(parentClassPtr)
return &parentClassPtr->export;
--- 1100,1112 ----
SmiClass *smiGetAttributeParentClass( SmiAttribute *smiAttributePtr)
{
+ Class *parentClassPtr;
+
if (!smiAttributePtr) {
return NULL;
}
! parentClassPtr=((Attribute*)smiAttributePtr)->parentClassPtr;
if(parentClassPtr)
return &parentClassPtr->export;
***************
*** 1914,1920 ****
char *smiRenderValue(SmiValue *smiValuePtr, SmiType *smiTypePtr, int flags)
{
! int i, j, k, n, pfx, have_pfx;
char *last_fmt, *fmt;
SmiUnsigned64 vv;
int xlen;
--- 1916,1923 ----
char *smiRenderValue(SmiValue *smiValuePtr, SmiType *smiTypePtr, int flags)
{
! unsigned int i, pfx;
! int j, k, n, have_pfx;
char *last_fmt, *fmt;
SmiUnsigned64 vv;
int xlen;
Diff finished at Sun Mar 02 12:27:18
....................