X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FIPStack%2Fadapters.c;h=7bf10d568465bf1a8138f68dc673354796b6ea6a;hb=015f48988e0ff398409d71dfc692005ab439490a;hp=2a02fd27cc4a98525207efd2b5409ffdc9b58d8b;hpb=4ebe00546574e97c5316881881f7f2562deea74b;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/IPStack/adapters.c b/KernelLand/Modules/IPStack/adapters.c index 2a02fd27..7bf10d56 100644 --- a/KernelLand/Modules/IPStack/adapters.c +++ b/KernelLand/Modules/IPStack/adapters.c @@ -21,7 +21,7 @@ void *IPStack_Adapter_Add(const tIPStack_AdapterType *Type, void *Ptr, const voi void IPStack_Adapter_Del(void *Handle); // --- VFS API --- int Adapter_ReadDir(tVFS_Node *Node, int Pos, char Name[FILENAME_MAX]); -tVFS_Node *Adapter_FindDir(tVFS_Node *Node, const char *Name); +tVFS_Node *Adapter_FindDir(tVFS_Node *Node, const char *Name, Uint Flags); int Adapter_DirIOCtl(tVFS_Node *Node, int Num, void *Data); int Adapter_IOCtl(tVFS_Node *Node, int Num, void *Data); // --- "Internal" (IPStack) API --- @@ -85,8 +85,8 @@ void *IPStack_Adapter_Add(const tIPStack_AdapterType *Type, void *Ptr, const voi Mutex_Release( &glIP_Adapters ); // Watch the adapter for incoming packets - tTID tid = Proc_SpawnWorker(Adapter_int_WatchThread, ret); - if(tid < 0) { + void *worker = Proc_SpawnWorker(Adapter_int_WatchThread, ret); + if(!worker) { Log_Warning("IPStack", "Unable to create watcher thread for %p", ret); } @@ -157,7 +157,7 @@ int Adapter_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX]) return -EINVAL; } -tVFS_Node *Adapter_FindDir(tVFS_Node *Node, const char *Name) +tVFS_Node *Adapter_FindDir(tVFS_Node *Node, const char *Name, Uint Flags) { tAdapter *a = Adapter_GetByName(Name); if(!a)