diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-05-06 21:04:40 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-05-06 21:04:40 +0000 |
commit | 50a6ca39ad4ed01922aa4f755f0ca579788226cf (patch) | |
tree | c7881b015b220558167310345b162324c96be15a /apps/plugins/random_folder_advance_config.c | |
parent | adb506df14aded06ed6e9ebf8540e6fd383ffd6a (diff) | |
download | rockbox-50a6ca39ad4ed01922aa4f755f0ca579788226cf.tar.gz rockbox-50a6ca39ad4ed01922aa4f755f0ca579788226cf.zip |
Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes).
This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/random_folder_advance_config.c')
-rw-r--r-- | apps/plugins/random_folder_advance_config.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/random_folder_advance_config.c b/apps/plugins/random_folder_advance_config.c index d5e7a10cdc..f7bb790dc1 100644 --- a/apps/plugins/random_folder_advance_config.c +++ b/apps/plugins/random_folder_advance_config.c | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | PLUGIN_HEADER | 24 | PLUGIN_HEADER |
25 | 25 | ||
26 | static bool abort; | 26 | static bool cancel; |
27 | static int fd; | 27 | static int fd; |
28 | static int dirs_count; | 28 | static int dirs_count; |
29 | static int lasttick; | 29 | static int lasttick; |
@@ -70,7 +70,7 @@ void traversedir(char* location, char* name) | |||
70 | if (dir) { | 70 | if (dir) { |
71 | entry = rb->readdir(dir); | 71 | entry = rb->readdir(dir); |
72 | while (entry) { | 72 | while (entry) { |
73 | if (abort) | 73 | if (cancel) |
74 | break; | 74 | break; |
75 | /* Skip .. and . */ | 75 | /* Skip .. and . */ |
76 | if (entry->d_name[0] == '.') | 76 | if (entry->d_name[0] == '.') |
@@ -113,7 +113,7 @@ void traversedir(char* location, char* name) | |||
113 | lasttick = *rb->current_tick; | 113 | lasttick = *rb->current_tick; |
114 | if (rb->action_userabort(TIMEOUT_NOBLOCK)) | 114 | if (rb->action_userabort(TIMEOUT_NOBLOCK)) |
115 | { | 115 | { |
116 | abort = true; | 116 | cancel = true; |
117 | break; | 117 | break; |
118 | } | 118 | } |
119 | } | 119 | } |
@@ -213,7 +213,7 @@ bool custom_dir(void) | |||
213 | void generate(void) | 213 | void generate(void) |
214 | { | 214 | { |
215 | dirs_count = 0; | 215 | dirs_count = 0; |
216 | abort = false; | 216 | cancel = false; |
217 | fd = rb->open(RFA_FILE,O_CREAT|O_WRONLY, 0666); | 217 | fd = rb->open(RFA_FILE,O_CREAT|O_WRONLY, 0666); |
218 | rb->write(fd,&dirs_count,sizeof(int)); | 218 | rb->write(fd,&dirs_count,sizeof(int)); |
219 | if (fd < 0) | 219 | if (fd < 0) |
@@ -621,7 +621,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
621 | { | 621 | { |
622 | (void)parameter; | 622 | (void)parameter; |
623 | 623 | ||
624 | abort = false; | 624 | cancel = false; |
625 | 625 | ||
626 | return main_menu(); | 626 | return main_menu(); |
627 | } | 627 | } |