summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/sdl
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-05-17 22:03:51 +0000
committerThomas Martitz <kugel@rockbox.org>2010-05-17 22:03:51 +0000
commit7b3299d681db870194154a1e6e7a39583ffff563 (patch)
tree76054ee25faa511eeeabe7d481a1e39f5f297511 /firmware/target/hosted/sdl
parent66f183077d835b7d3bc2041fad89a65f04faacb9 (diff)
downloadrockbox-7b3299d681db870194154a1e6e7a39583ffff563.tar.gz
rockbox-7b3299d681db870194154a1e6e7a39583ffff563.zip
A bit further cleanup in system-sdl.c.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26123 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/hosted/sdl')
-rw-r--r--firmware/target/hosted/sdl/system-sdl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/target/hosted/sdl/system-sdl.c b/firmware/target/hosted/sdl/system-sdl.c
index 649d74d94a..9d529de37f 100644
--- a/firmware/target/hosted/sdl/system-sdl.c
+++ b/firmware/target/hosted/sdl/system-sdl.c
@@ -23,9 +23,8 @@
23#include <SDL_thread.h> 23#include <SDL_thread.h>
24#include <stdlib.h> 24#include <stdlib.h>
25#include <string.h> 25#include <string.h>
26#include <setjmp.h>
27#include <inttypes.h> 26#include <inttypes.h>
28#include "system-sdl.h" 27#include "system.h"
29#include "thread-sdl.h" 28#include "thread-sdl.h"
30#include "sim-ui-defines.h" 29#include "sim-ui-defines.h"
31#include "lcd-sdl.h" 30#include "lcd-sdl.h"
@@ -168,7 +167,7 @@ void system_init(void)
168 SDL_mutex *m; 167 SDL_mutex *m;
169 if (SDL_Init(SDL_INIT_TIMER)) 168 if (SDL_Init(SDL_INIT_TIMER))
170 panicf("%s", SDL_GetError()); 169 panicf("%s", SDL_GetError());
171 atexit(SDL_Quit); 170 atexit(sys_poweroff);
172 171
173 c = SDL_CreateCond(); 172 c = SDL_CreateCond();
174 m = SDL_CreateMutex(); 173 m = SDL_CreateMutex();