SDL: HIDAPI_DumpPacket() takes a const memory pointer

From 7df571ffc63dfe5f6610b70f7cfa7cc2419d06bb Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 2 Sep 2022 11:37:16 -0700
Subject: [PATCH] HIDAPI_DumpPacket() takes a const memory pointer

---
 src/joystick/hidapi/SDL_hidapijoystick.c   | 2 +-
 src/joystick/hidapi/SDL_hidapijoystick_c.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/joystick/hidapi/SDL_hidapijoystick.c b/src/joystick/hidapi/SDL_hidapijoystick.c
index 62bd9710e79..57764de2f2d 100644
--- a/src/joystick/hidapi/SDL_hidapijoystick.c
+++ b/src/joystick/hidapi/SDL_hidapijoystick.c
@@ -97,7 +97,7 @@ static SDL_bool initialized = SDL_FALSE;
 static SDL_bool shutting_down = SDL_FALSE;
 
 void
-HIDAPI_DumpPacket(const char *prefix, Uint8 *data, int size)
+HIDAPI_DumpPacket(const char *prefix, const Uint8 *data, int size)
 {
     int i;
     char *buffer;
diff --git a/src/joystick/hidapi/SDL_hidapijoystick_c.h b/src/joystick/hidapi/SDL_hidapijoystick_c.h
index f70dc15ff64..58c35914abc 100644
--- a/src/joystick/hidapi/SDL_hidapijoystick_c.h
+++ b/src/joystick/hidapi/SDL_hidapijoystick_c.h
@@ -149,7 +149,7 @@ extern void HIDAPI_UpdateDevices(void);
 extern SDL_bool HIDAPI_JoystickConnected(SDL_HIDAPI_Device *device, SDL_JoystickID *pJoystickID);
 extern void HIDAPI_JoystickDisconnected(SDL_HIDAPI_Device *device, SDL_JoystickID joystickID);
 
-extern void HIDAPI_DumpPacket(const char *prefix, Uint8 *data, int size);
+extern void HIDAPI_DumpPacket(const char *prefix, const Uint8 *data, int size);
 
 extern float HIDAPI_RemapVal(float val, float val_min, float val_max, float output_min, float output_max);