error reporting, removal of stale files, removed warning

This commit is contained in:
Arnout Engelen
2006-11-04 15:43:55 +00:00
parent 6539bd8f2d
commit 4a866021fc
4 changed files with 18 additions and 6 deletions

View File

@@ -203,11 +203,22 @@ void quit_cb (int i)
}
void forceExit(const char *msg)
{
forceExit (msg, NULL);
}
void forceExit(const char *msg, const char* msg2)
{
if ((!tracemode)&&(!DEBUG)){
exit_ui();
}
std::cerr << msg << std::endl;
std::cerr << msg;
if (msg2 != NULL)
{
std::cerr << msg2;
}
std::cerr << std::endl;
exit(0);
}
@@ -299,7 +310,9 @@ int main (int argc, char** argv)
}
if (devices == NULL)
{
devices = new device (strdup("eth0"));
}
if ((!tracemode) && (!DEBUG)){
init_ui();