Skip to content

Commit

Permalink
declare at file scope
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj authored and radare committed Apr 14, 2020
1 parent 2bcb6cd commit 8398d44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libr/core/cmd_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include "linux_heap_jemalloc.c"
#endif

void cmd_anal_reg (RCore *core, const char *str);

static const char *help_msg_d[] = {
"Usage:", "d", " # Debug commands",
"db", "[?]", "Breakpoints commands",
Expand Down Expand Up @@ -5138,7 +5140,6 @@ static int cmd_debug(void *data, const char *input) {
if (core->io->debug || input[1] == '?') {
cmd_debug_reg (core, input + 1);
} else {
void cmd_anal_reg (RCore *core, const char *str);
cmd_anal_reg (core, input + 1);
}
//r_core_cmd (core, "|reg", 0);
Expand Down
3 changes: 2 additions & 1 deletion libr/core/cmd_meta.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include "r_types.h"
#include "sdb/sdb.h"

char *getcommapath(RCore *core);

static const char *help_msg_C[] = {
"Usage:", "C[-LCvsdfm*?][*?] [...]", " # Metadata management",
"C", "", "list meta info in human friendly form",
Expand Down Expand Up @@ -365,7 +367,6 @@ static int cmd_meta_comment(RCore *core, const char *input) {
if (comment && *comment) {
char *cmtfile = r_str_between (comment, ",(", ")");
if (cmtfile && *cmtfile) {
char *getcommapath(RCore *core);
char *cwd = getcommapath (core);
r_cons_printf ("%s"R_SYS_DIR"%s\n", cwd, cmtfile);
free (cwd);
Expand Down

0 comments on commit 8398d44

Please sign in to comment.