summaryrefslogtreecommitdiff
path: root/apps/settings.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-07-25 22:45:57 +0000
committerThomas Martitz <kugel@rockbox.org>2010-07-25 22:45:57 +0000
commita3e6a865df7f40a01e38381881b29b0b16f6ca8c (patch)
tree1472620cae01a035010bfac7bf341359aee7dd2d /apps/settings.h
parent6325ef978b2c26445721cae14028c3d429b63b3e (diff)
downloadrockbox-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.h4
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
291void set_file(const char* filename, char* setting, int maxlen); 291void set_file(const char* filename, char* setting, const int maxlen);
292 292
293bool set_option(const char* string, const void* variable, enum optiontype type, 293bool 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));