summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-11-24 23:44:35 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2022-11-24 23:44:35 -0500
commit853d70e938f6b32dc965e92f9d34905fbe7ff0a8 (patch)
tree69ec8de827624ae951fdcbf95e89a05542c94545 /apps
parent71934d4c16fa1925833ef6e65ccb33b358398bd0 (diff)
downloadrockbox-853d70e938f6b32dc965e92f9d34905fbe7ff0a8.tar.gz
rockbox-853d70e938f6b32dc965e92f9d34905fbe7ff0a8.zip
Fix Red confirm_delete, CHECKWPS & DBTOOL
Change-Id: I2f375def92e4c3c4b6be9d0494de682e6d3ebd2d
Diffstat (limited to 'apps')
-rw-r--r--apps/misc.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/apps/misc.c b/apps/misc.c
index caf2ce5cd4..3e93cc9649 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -1133,15 +1133,6 @@ int read_line(int fd, char* buffer, int buffer_size)
1133 return rdbufend >= 0 ? num_read : -1; 1133 return rdbufend >= 0 ? num_read : -1;
1134} 1134}
1135 1135
1136int confirm_delete_yesno(const char *name)
1137{
1138 const char *lines[] = { ID2P(LANG_REALLY_DELETE), name };
1139 const char *yes_lines[] = { ID2P(LANG_DELETING), name };
1140 const struct text_message message = { lines, 2 };
1141 const struct text_message yes_message = { yes_lines, 2 };
1142 return gui_syncyesno_run(&message, &yes_message, NULL);
1143}
1144
1145char* skip_whitespace(char* const str) 1136char* skip_whitespace(char* const str)
1146{ 1137{
1147 char *s = str; 1138 char *s = str;
@@ -1153,6 +1144,16 @@ char* skip_whitespace(char* const str)
1153} 1144}
1154 1145
1155#if !defined(CHECKWPS) && !defined(DBTOOL) 1146#if !defined(CHECKWPS) && !defined(DBTOOL)
1147
1148int confirm_delete_yesno(const char *name)
1149{
1150 const char *lines[] = { ID2P(LANG_REALLY_DELETE), name };
1151 const char *yes_lines[] = { ID2P(LANG_DELETING), name };
1152 const struct text_message message = { lines, 2 };
1153 const struct text_message yes_message = { yes_lines, 2 };
1154 return gui_syncyesno_run(&message, &yes_message, NULL);
1155}
1156
1156/* time_split_units() 1157/* time_split_units()
1157 split time values depending on base unit 1158 split time values depending on base unit
1158 unit_idx: UNIT_HOUR, UNIT_MIN, UNIT_SEC, UNIT_MS 1159 unit_idx: UNIT_HOUR, UNIT_MIN, UNIT_SEC, UNIT_MS