summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorDusan Durech <dusan@debian.(none)>2009-12-26 15:03:45 +0100
committerDusan Durech <dusan@debian.(none)>2009-12-26 15:03:45 +0100
commitf2a093784ddca0863792aada235564ce2901d0da (patch)
treee82ca899a3476772c67b6fc6a2e0a998c5383c63 /src/client
parentb679c532c63f556cc0355fe7118d7470c488ceda (diff)
replace error mesage from "error" to "fatal" message
Diffstat (limited to 'src/client')
-rw-r--r--src/client/interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/interface.c b/src/client/interface.c
index 2db2e7d..fd11396 100644
--- a/src/client/interface.c
+++ b/src/client/interface.c
@@ -119,8 +119,9 @@ int interface_init()
/* initialization of SDL */
if (SDL_Init(SDL_SUBSYSTEMS) == -1) {
- error("Unable to initialize SDL: %s", SDL_GetError());
+ fatal("Unable to initialize SDL: %s", SDL_GetError());
SDL_Quit();
+ exit(0);
return -1;
}