Improving error handling

This commit is contained in:
Pierre Pronchery 2005-10-11 00:41:01 +00:00
parent 4a100d3047
commit b084a2868f

View File

@ -47,8 +47,10 @@ static int _damon(void)
break; break;
if((hosts[i].appclient = appclient_new_event("Probe", event)) if((hosts[i].appclient = appclient_new_event("Probe", event))
== NULL) == NULL)
{
_damon_error(hosts[i].hostname, 0);
break; break;
fprintf(stderr, "AppClientNew => %p\n", hosts[i].appclient); }
} }
if(hosts[i].hostname == NULL) if(hosts[i].hostname == NULL)
{ {