diff options
Diffstat (limited to 'apps/plugins/text_viewer/tv_settings.c')
-rw-r--r-- | apps/plugins/text_viewer/tv_settings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/text_viewer/tv_settings.c b/apps/plugins/text_viewer/tv_settings.c index 56c0bbe7ce..0b1fe20271 100644 --- a/apps/plugins/text_viewer/tv_settings.c +++ b/apps/plugins/text_viewer/tv_settings.c | |||
@@ -417,7 +417,7 @@ bool tv_save_global_settings(const struct tv_preferences *prefs) | |||
417 | * ---------------------------------------------------------------------------- | 417 | * ---------------------------------------------------------------------------- |
418 | */ | 418 | */ |
419 | 419 | ||
420 | void tv_load_settings(const unsigned char *file_name) | 420 | bool tv_load_settings(const unsigned char *file_name) |
421 | { | 421 | { |
422 | unsigned char buf[MAX_PATH+2]; | 422 | unsigned char buf[MAX_PATH+2]; |
423 | unsigned int fcount; | 423 | unsigned int fcount; |
@@ -470,7 +470,7 @@ void tv_load_settings(const unsigned char *file_name) | |||
470 | tv_set_default_preferences(&prefs); | 470 | tv_set_default_preferences(&prefs); |
471 | } | 471 | } |
472 | rb->strlcpy(prefs.file_name, file_name, MAX_PATH); | 472 | rb->strlcpy(prefs.file_name, file_name, MAX_PATH); |
473 | tv_set_preferences(&prefs); | 473 | return tv_set_preferences(&prefs); |
474 | } | 474 | } |
475 | 475 | ||
476 | static bool tv_copy_settings(int sfd, int dfd, int size) | 476 | static bool tv_copy_settings(int sfd, int dfd, int size) |