diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-07-25 22:45:57 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-07-25 22:45:57 +0000 |
commit | a3e6a865df7f40a01e38381881b29b0b16f6ca8c (patch) | |
tree | 1472620cae01a035010bfac7bf341359aee7dd2d /apps/settings.h | |
parent | 6325ef978b2c26445721cae14028c3d429b63b3e (diff) | |
download | rockbox-a3e6a865df7f40a01e38381881b29b0b16f6ca8c.tar.gz rockbox-a3e6a865df7f40a01e38381881b29b0b16f6ca8c.zip |
Rewrite set_file() to be smaller and better readable, and a comment describing what it does.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27567 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.h')
-rw-r--r-- | apps/settings.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings.h b/apps/settings.h index 75eddb41f6..1cf43d9a2c 100644 --- a/apps/settings.h +++ b/apps/settings.h | |||
@@ -55,7 +55,7 @@ struct opt_items { | |||
55 | #ifndef ROCKBOX_DIR | 55 | #ifndef ROCKBOX_DIR |
56 | #error ROCKBOX_DIR not defined (should be in autoconf.h) | 56 | #error ROCKBOX_DIR not defined (should be in autoconf.h) |
57 | #endif | 57 | #endif |
58 | #define ROCKBOX_DIR_LEN sizeof(ROCKBOX_DIR) | 58 | #define ROCKBOX_DIR_LEN (sizeof(ROCKBOX_DIR)-1) |
59 | #endif /* def __PCTOOL__ */ | 59 | #endif /* def __PCTOOL__ */ |
60 | 60 | ||
61 | 61 | ||
@@ -288,7 +288,7 @@ bool set_int_ex(const unsigned char* string, const char* unit, int voice_unit, | |||
288 | const char* (*formatter)(char*, size_t, int, const char*), | 288 | const char* (*formatter)(char*, size_t, int, const char*), |
289 | int32_t (*get_talk_id)(int, int)); | 289 | int32_t (*get_talk_id)(int, int)); |
290 | 290 | ||
291 | void set_file(const char* filename, char* setting, int maxlen); | 291 | void set_file(const char* filename, char* setting, const int maxlen); |
292 | 292 | ||
293 | bool set_option(const char* string, const void* variable, enum optiontype type, | 293 | bool set_option(const char* string, const void* variable, enum optiontype type, |
294 | const struct opt_items* options, int numoptions, void (*function)(int)); | 294 | const struct opt_items* options, int numoptions, void (*function)(int)); |