Modules/IPStack - Fix for Proc_SpawnWorker change
authorJohn Hodge <[email protected]>
Sun, 16 Sep 2012 04:07:56 +0000 (12:07 +0800)
committerJohn Hodge <[email protected]>
Sun, 16 Sep 2012 04:07:56 +0000 (12:07 +0800)
KernelLand/Modules/IPStack/adapters.c

index 2a02fd2..deb0552 100644 (file)
@@ -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);
        }
        

UCC git Repository :: git.ucc.asn.au