server: convert 'unsigned' to 'unsigned int'
Conversion done with checkpatch --fix-inplace -types UNSPECIFIED_INT Ignore the cast as they could be better addressed. Change-Id: Ib0cbd9388d61659f8d47c8f57c09baa6df123487 Signed-off-by: Mark Zhuang <mark.zhuang@spacemit.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8369 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
134e56338d
commit
114ad468ca
|
@ -116,7 +116,7 @@ static int gdb_error(struct connection *connection, int retval);
|
|||
static char *gdb_port;
|
||||
static char *gdb_port_next;
|
||||
|
||||
static void gdb_log_callback(void *priv, const char *file, unsigned line,
|
||||
static void gdb_log_callback(void *priv, const char *file, unsigned int line,
|
||||
const char *function, const char *string);
|
||||
|
||||
static void gdb_sig_halted(struct connection *connection);
|
||||
|
@ -360,7 +360,7 @@ static void gdb_log_incoming_packet(struct connection *connection, const char *p
|
|||
struct gdb_connection *gdb_connection = connection->priv;
|
||||
|
||||
/* Avoid dumping non-printable characters to the terminal */
|
||||
const unsigned packet_len = strlen(packet);
|
||||
const unsigned int packet_len = strlen(packet);
|
||||
const char *nonprint = find_nonprint_char(packet, packet_len);
|
||||
if (nonprint) {
|
||||
/* Does packet at least have a prefix that is printable?
|
||||
|
@ -1203,7 +1203,7 @@ static void gdb_target_to_reg(struct target *target,
|
|||
|
||||
int i;
|
||||
for (i = 0; i < str_len; i += 2) {
|
||||
unsigned t;
|
||||
unsigned int t;
|
||||
if (sscanf(tstr + i, "%02x", &t) != 1) {
|
||||
LOG_ERROR("BUG: unable to convert register value");
|
||||
exit(-1);
|
||||
|
@ -1948,8 +1948,8 @@ static int gdb_memory_map(struct connection *connection,
|
|||
compare_bank);
|
||||
|
||||
for (unsigned int i = 0; i < target_flash_banks; i++) {
|
||||
unsigned sector_size = 0;
|
||||
unsigned group_len = 0;
|
||||
unsigned int sector_size = 0;
|
||||
unsigned int group_len = 0;
|
||||
|
||||
p = banks[i];
|
||||
|
||||
|
@ -3469,7 +3469,7 @@ static int gdb_fileio_response_packet(struct connection *connection,
|
|||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static void gdb_log_callback(void *priv, const char *file, unsigned line,
|
||||
static void gdb_log_callback(void *priv, const char *file, unsigned int line,
|
||||
const char *function, const char *string)
|
||||
{
|
||||
struct connection *connection = priv;
|
||||
|
|
|
@ -93,7 +93,7 @@ static int telnet_output(struct command_context *cmd_ctx, const char *line)
|
|||
return telnet_outputline(connection, line);
|
||||
}
|
||||
|
||||
static void telnet_log_callback(void *priv, const char *file, unsigned line,
|
||||
static void telnet_log_callback(void *priv, const char *file, unsigned int line,
|
||||
const char *function, const char *string)
|
||||
{
|
||||
struct connection *connection = priv;
|
||||
|
|
Loading…
Reference in New Issue