}
name = malloc(4);
+ if(!name) {
+ Log_Warning("IPStack", "IPStack_Root_ReadDir - malloc error");
+ LEAVE('n');
+ return NULL;
+ }
// Create the name
Pos = iface->Node.ImplInt;
for( iface = gIP_Interfaces; iface; iface = iface->Next )
{
- if( iface->Node.ImplInt == num )
+ if( (int)iface->Node.ImplInt == num )
{
LEAVE('p', &iface->Node);
return &iface->Node;
iface->Node.ReadDir = IPStack_Iface_ReadDir;
iface->Node.FindDir = IPStack_Iface_FindDir;
iface->Node.IOCtl = IPStack_Iface_IOCtl;
+ iface->Node.MkNod = NULL;
+ iface->Node.Link = NULL;
+ iface->Node.Relink = NULL;
+ iface->Node.Close = NULL;
// Set Defaults
iface->TimeoutDelay = DEFAULT_TIMEOUT;