diff options
author | Nils Wallménius <nils@rockbox.org> | 2009-10-11 08:45:47 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2009-10-11 08:45:47 +0000 |
commit | 46943ad40c835999c24b345e4b19e37161f078b6 (patch) | |
tree | b8293fa22f546a5b0f3dffafa8d98060be854d47 /apps/recorder/recording.c | |
parent | d6227edbb51aa5df03bd8951a582ece994611c2e (diff) | |
download | rockbox-46943ad40c835999c24b345e4b19e37161f078b6.tar.gz rockbox-46943ad40c835999c24b345e4b19e37161f078b6.zip |
Avoid more useless string copys and make some random cleanups
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23092 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/recording.c')
-rw-r--r-- | apps/recorder/recording.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index b86c884c7a..ffa4b2df7e 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -965,7 +965,7 @@ static const char* reclist_get_name(int selected_item, void * data, | |||
965 | } | 965 | } |
966 | else | 966 | else |
967 | { | 967 | { |
968 | strlcpy(buffer, str(LANG_RECORDING_FILENAME), buffer_len); | 968 | return str(LANG_RECORDING_FILENAME); |
969 | } | 969 | } |
970 | break; | 970 | break; |
971 | } | 971 | } |
@@ -1970,7 +1970,7 @@ static bool f2_rec_screen(void) | |||
1970 | } | 1970 | } |
1971 | 1971 | ||
1972 | while (!exit) { | 1972 | while (!exit) { |
1973 | const char* ptr=NULL; | 1973 | const char* ptr; |
1974 | 1974 | ||
1975 | FOR_NB_SCREENS(i) | 1975 | FOR_NB_SCREENS(i) |
1976 | { | 1976 | { |
@@ -2090,7 +2090,7 @@ static bool f3_rec_screen(void) | |||
2090 | bool used = false; | 2090 | bool used = false; |
2091 | int w, h, i; | 2091 | int w, h, i; |
2092 | int button; | 2092 | int button; |
2093 | char *src_str[] = | 2093 | const char *src_str[] = |
2094 | { | 2094 | { |
2095 | str(LANG_SYSFONT_RECORDING_SRC_MIC), | 2095 | str(LANG_SYSFONT_RECORDING_SRC_MIC), |
2096 | str(LANG_SYSFONT_LINE_IN), | 2096 | str(LANG_SYSFONT_LINE_IN), |
@@ -2105,8 +2105,7 @@ static bool f3_rec_screen(void) | |||
2105 | } | 2105 | } |
2106 | 2106 | ||
2107 | while (!exit) { | 2107 | while (!exit) { |
2108 | char* ptr=NULL; | 2108 | const char* ptr = src_str[global_settings.rec_source]; |
2109 | ptr = src_str[global_settings.rec_source]; | ||
2110 | FOR_NB_SCREENS(i) | 2109 | FOR_NB_SCREENS(i) |
2111 | { | 2110 | { |
2112 | screens[i].clear_display(); | 2111 | screens[i].clear_display(); |