diff mbox series

[04/14] gdbserver: Make command static

Message ID 20220314041735.542867-5-npiggin@gmail.com
State New
Headers show
Series gdbserver fixes and POWER10 support | expand

Commit Message

Nicholas Piggin March 14, 2022, 4:17 a.m. UTC
The command array is local, make it static.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
 src/pdbgproxy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Joel Stanley March 15, 2022, 11:13 p.m. UTC | #1
On Mon, 14 Mar 2022 at 04:18, Nicholas Piggin <npiggin@gmail.com> wrote:
>
> The command array is local, make it static.
>
> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>

Reviewed-by: Joel Stanley <joel@jms.id.au>


> ---
>  src/pdbgproxy.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/pdbgproxy.c b/src/pdbgproxy.c
> index e32f518..5a8b5f9 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,
> --
> 2.23.0
>
> --
> Pdbg mailing list
> Pdbg@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/pdbg
diff mbox series

Patch

diff --git a/src/pdbgproxy.c b/src/pdbgproxy.c
index e32f518..5a8b5f9 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,