1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

winedbg: Make some internal data 'static const'.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
Eric Pouech 2023-12-20 09:40:03 +01:00 committed by Alexandre Julliard
parent a8f5b292c3
commit edb38d15c5

View file

@ -1639,7 +1639,7 @@ static void packet_query_monitor_mem(struct gdb_context* gdbctx, int len, const
packet_reply(gdbctx, "OK"); packet_reply(gdbctx, "OK");
} }
struct query_detail static const struct query_detail
{ {
int with_arg; int with_arg;
const char* name; const char* name;
@ -1659,7 +1659,7 @@ static enum packet_return packet_query_remote_command(struct gdb_context* gdbctx
const char* hxcmd, size_t len) const char* hxcmd, size_t len)
{ {
char buffer[128]; char buffer[128];
struct query_detail* qd; const struct query_detail* qd;
assert((len & 1) == 0 && len < 2 * sizeof(buffer)); assert((len & 1) == 0 && len < 2 * sizeof(buffer));
len /= 2; len /= 2;
@ -1986,7 +1986,7 @@ static enum packet_return packet_query_exec_file(struct gdb_context* gdbctx)
return packet_send_buffer; return packet_send_buffer;
} }
struct qxfer static const struct qxfer
{ {
const char* name; const char* name;
enum packet_return (*handler)(struct gdb_context* gdbctx); enum packet_return (*handler)(struct gdb_context* gdbctx);
@ -2260,7 +2260,7 @@ struct packet_entry
enum packet_return (*handler)(struct gdb_context* gdbctx); enum packet_return (*handler)(struct gdb_context* gdbctx);
}; };
static struct packet_entry packet_entries[] = static const struct packet_entry packet_entries[] =
{ {
{'?', packet_last_signal}, {'?', packet_last_signal},
{'c', packet_continue}, {'c', packet_continue},