summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/euroconverter.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugins/euroconverter.c b/apps/plugins/euroconverter.c
index 4d05f1a5ac..ccf37ae7e0 100644
--- a/apps/plugins/euroconverter.c
+++ b/apps/plugins/euroconverter.c
@@ -44,7 +44,9 @@ To do:
44*/ 44*/
45 45
46/* Name and path of the config file*/ 46/* Name and path of the config file*/
47#define CFGFILE "euroconverter.cfg" 47static const char cfg_filename[] = "euroconverter.cfg";
48#define CFGFILE_VERSION 0 /* Current config file version */
49#define CFGFILE_MINVERSION 0 /* Minimum config file version to accept */
48 50
49/*Pattern for the converter*/ 51/*Pattern for the converter*/
50static unsigned char pattern_euro[]={0x07, 0x08, 0x1E, 0x10, 0x1E, 0x08, 0x07}; /* € */ 52static unsigned char pattern_euro[]={0x07, 0x08, 0x1E, 0x10, 0x1E, 0x08, 0x07}; /* € */
@@ -299,14 +301,14 @@ static void show_abbrev(void)
299/* Save the config to disk */ 301/* Save the config to disk */
300static void save_config(void) 302static void save_config(void)
301{ 303{
302 configfile_save(CFGFILE, config, 1); 304 configfile_save(cfg_filename, config, 1, CFGFILE_VERSION);
303} 305}
304 306
305 307
306/* Load the config from disk */ 308/* Load the config from disk */
307static void load_config(void) 309static void load_config(void)
308{ 310{
309 configfile_load(CFGFILE, config, 1); 311 configfile_load(cfg_filename, config, 1, CFGFILE_MINVERSION);
310} 312}
311 313
312 314