git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup and Bugfixes
[tpg/acess2.git]
/
Modules
/
IPStack
/
link.c
diff --git
a/Modules/IPStack/link.c
b/Modules/IPStack/link.c
index
9dee6e4
..
4489b52
100644
(file)
--- a/
Modules/IPStack/link.c
+++ b/
Modules/IPStack/link.c
@@
-39,7
+39,10
@@
void Link_RegisterType(Uint16 Type, tPacketCallback Callback)
if(i == -1)
{
tmp = realloc(gaRegisteredTypes, (giRegisteredTypes+1)*sizeof(*gaRegisteredTypes));
if(i == -1)
{
tmp = realloc(gaRegisteredTypes, (giRegisteredTypes+1)*sizeof(*gaRegisteredTypes));
- if(!tmp) Panic("[NET ] Out of heap space!");
+ if(!tmp) {
+ Warning("[NET ] Out of heap space!");
+ return ;
+ }
i = giRegisteredTypes;
giRegisteredTypes ++;
gaRegisteredTypes = tmp;
i = giRegisteredTypes;
giRegisteredTypes ++;
gaRegisteredTypes = tmp;
@@
-77,7
+80,8
@@
void Link_WatchDevice(tAdapter *Adapter)
int tid = Proc_SpawnWorker(); // Create a new worker thread
if(tid < 0) {
int tid = Proc_SpawnWorker(); // Create a new worker thread
if(tid < 0) {
- Panic("[NET ] Unable to create watcher thread for '%s'", Adapter->Device);
+ Warning("[NET ] Unable to create watcher thread for '%s'", Adapter->Device);
+ return ;
}
if(tid > 0) {
}
if(tid > 0) {
UCC
git Repository :: git.ucc.asn.au