mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 07:30:33 +00:00
Fix warnings
This commit is contained in:
parent
14a2cb7138
commit
f78cd7f706
@ -207,7 +207,7 @@ static const char *cache_white_list_cmds[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
static RCoreHelpMessage help_msg_panels = {
|
||||
static const char *help_msg_panels[] = {
|
||||
"|", "split current panel vertically",
|
||||
"-", "split current panel horizontally",
|
||||
":", "run r2 command in prompt",
|
||||
@ -260,7 +260,7 @@ static RCoreHelpMessage help_msg_panels = {
|
||||
NULL
|
||||
};
|
||||
|
||||
static RCoreHelpMessage help_msg_panels_window = {
|
||||
static const char * const help_msg_panels_window[] = {
|
||||
":", "run r2 command in prompt",
|
||||
";", "add/remove comment",
|
||||
"\"", "create a panel from the list and replace the current one",
|
||||
@ -280,7 +280,7 @@ static RCoreHelpMessage help_msg_panels_window = {
|
||||
NULL
|
||||
};
|
||||
|
||||
static RCoreHelpMessage help_msg_panels_zoom = {
|
||||
static const char * const help_msg_panels_zoom[] = {
|
||||
"?", "show this help",
|
||||
":", "run r2 command in prompt",
|
||||
";", "add/remove comment",
|
||||
@ -1078,7 +1078,7 @@ static void __update_help(RCore *core, RPanels *ps) {
|
||||
if (!strncmp (p->model->cmd, help, strlen (help))) {
|
||||
RStrBuf *rsb = r_strbuf_new (NULL);
|
||||
const char *title;
|
||||
const char **msg;
|
||||
const char * const * msg;
|
||||
switch (ps->mode) {
|
||||
case PANEL_MODE_WINDOW:
|
||||
title = "Panels Window Mode";
|
||||
|
@ -555,7 +555,7 @@ R_API void r_core_visual_jump(RCore *core, ut8 ch) {
|
||||
}
|
||||
|
||||
// TODO: merge with r_cons_cmd_help
|
||||
R_API void r_core_visual_append_help(RStrBuf *p, const char *title, const char ** const help) {
|
||||
R_API void r_core_visual_append_help(RStrBuf *p, const char *title, const char * const * help) {
|
||||
RCons *cons = r_cons_singleton ();
|
||||
bool use_color = cons->context->color_mode;
|
||||
const char
|
||||
|
@ -489,7 +489,7 @@ R_API void r_core_visual_toggle_decompiler_disasm(RCore *core, bool for_graph, b
|
||||
R_API void r_core_visual_applyDisMode(RCore *core, int disMode);
|
||||
R_API void r_core_visual_applyHexMode(RCore *core, int hexMode);
|
||||
R_API int r_core_visual_refs(RCore *core, bool xref, bool fcnInsteadOfAddr);
|
||||
R_API void r_core_visual_append_help(RStrBuf *p, const char *title, const char **help);
|
||||
R_API void r_core_visual_append_help(RStrBuf *p, const char *title, const char * const *help);
|
||||
R_API bool r_core_prevop_addr(RCore* core, ut64 start_addr, int numinstrs, ut64* prev_addr);
|
||||
R_API ut64 r_core_prevop_addr_force(RCore *core, ut64 start_addr, int numinstrs);
|
||||
R_API bool r_core_visual_hudstuff(RCore *core);
|
||||
|
Loading…
Reference in New Issue
Block a user