Skip to content

Commit

Permalink
debug: Fix declaration/definition mismatch
Browse files Browse the repository at this point in the history
The declaration for {set, get}_devint_reg did not match the definition
later down the file, despite the enumeration being used as the argument of
the first type already being in scope. This caused warnings and an error
on certain compilers.
  • Loading branch information
CohenArthur committed Oct 6, 2023
1 parent 495b917 commit c206d69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions debug/debug-unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ static int in_reset = 0;
/*! Forward declaration of static functions */
static int calculate_watchpoints (enum debug_unit_action action,
unsigned long udata);
static int get_devint_reg (unsigned int addr,
static int get_devint_reg (enum development_interface_address_space addr,
unsigned long *data);
static int set_devint_reg (unsigned int addr,
static int set_devint_reg (enum development_interface_address_space addr,
unsigned long data);
static int debug_set_mem (oraddr_t address, uorreg_t data);
static int debug_get_mem (oraddr_t address, uorreg_t * data);
Expand Down

0 comments on commit c206d69

Please sign in to comment.