diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-11-24 23:44:35 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-11-24 23:44:35 -0500 |
commit | 853d70e938f6b32dc965e92f9d34905fbe7ff0a8 (patch) | |
tree | 69ec8de827624ae951fdcbf95e89a05542c94545 | |
parent | 71934d4c16fa1925833ef6e65ccb33b358398bd0 (diff) | |
download | rockbox-853d70e938.tar.gz rockbox-853d70e938.zip |
Fix Red confirm_delete, CHECKWPS & DBTOOL
Change-Id: I2f375def92e4c3c4b6be9d0494de682e6d3ebd2d
-rw-r--r-- | apps/misc.c | 19 |
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) return rdbufend >= 0 ? num_read : -1; } -int confirm_delete_yesno(const char *name) -{ - const char *lines[] = { ID2P(LANG_REALLY_DELETE), name }; - const char *yes_lines[] = { ID2P(LANG_DELETING), name }; - const struct text_message message = { lines, 2 }; - const struct text_message yes_message = { yes_lines, 2 }; - return gui_syncyesno_run(&message, &yes_message, NULL); -} - char* skip_whitespace(char* const str) { char *s = str; @@ -1153,6 +1144,16 @@ char* skip_whitespace(char* const str) } #if !defined(CHECKWPS) && !defined(DBTOOL) + +int confirm_delete_yesno(const char *name) +{ + const char *lines[] = { ID2P(LANG_REALLY_DELETE), name }; + const char *yes_lines[] = { ID2P(LANG_DELETING), name }; + const struct text_message message = { lines, 2 }; + const struct text_message yes_message = { yes_lines, 2 }; + return gui_syncyesno_run(&message, &yes_message, NULL); +} + /* time_split_units() split time values depending on base unit unit_idx: UNIT_HOUR, UNIT_MIN, UNIT_SEC, UNIT_MS |