summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorAlexander Levin <al.le@rockbox.org>2010-04-03 21:28:19 +0000
committerAlexander Levin <al.le@rockbox.org>2010-04-03 21:28:19 +0000
commitba7501513a87433043a217a813c9147d004314a5 (patch)
treec0894f074756f6a77b254f132c28411c59c99748 /apps
parent8802482e3e3e7a05e2d2a12afb6f91fa56478828 (diff)
downloadrockbox-ba7501513a87433043a217a813c9147d004314a5.tar.gz
rockbox-ba7501513a87433043a217a813c9147d004314a5.zip
No need to call the same function twice
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25458 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/onplay.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index 246b8af6b1..43c228ca5c 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -1326,9 +1326,10 @@ static void set_hotkey(bool is_wps)
1326 char **line2_ptr = &line2; 1326 char **line2_ptr = &line2;
1327 const struct text_message message={(const char **)line1_ptr, 1}; 1327 const struct text_message message={(const char **)line1_ptr, 1};
1328 const struct text_message yes_message={(const char **)line2_ptr, 1}; 1328 const struct text_message yes_message={(const char **)line2_ptr, 1};
1329 1329 char *func_name = str(this_id);
1330 snprintf(line1, sizeof(line1_buf), str(LANG_SET_HOTKEY_QUESTION), str(this_id)); 1330
1331 snprintf(line2, sizeof(line2_buf), str(LANG_HOTKEY_ASSIGNED), str(this_id)); 1331 snprintf(line1, sizeof(line1_buf), str(LANG_SET_HOTKEY_QUESTION), func_name);
1332 snprintf(line2, sizeof(line2_buf), str(LANG_HOTKEY_ASSIGNED), func_name);
1332 1333
1333 /* confirm the hotkey setting change */ 1334 /* confirm the hotkey setting change */
1334 if(gui_syncyesno_run(&message, &yes_message, NULL)==YESNO_YES) 1335 if(gui_syncyesno_run(&message, &yes_message, NULL)==YESNO_YES)