diff mbox series

[v2,08/39] gdbserver: Make command callback array static

Message ID 20220420065013.222816-9-npiggin@gmail.com
State New
Headers show
Series gdbserver multi-threaded debugging and POWER9/10 support | expand

Commit Message

Nicholas Piggin April 20, 2022, 6:49 a.m. UTC
The command array is local, make it static.

Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
 src/pdbgproxy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/pdbgproxy.c b/src/pdbgproxy.c
index e32f5184..5a8b5f99 100644
--- a/src/pdbgproxy.c
+++ b/src/pdbgproxy.c
@@ -405,7 +405,7 @@  static int read_from_client(int fd)
 	return 0;
 }
 
-command_cb callbacks[LAST_CMD + 1] = {
+static command_cb callbacks[LAST_CMD + 1] = {
 	cmd_default,
 	get_gprs,
 	get_spr,