VITA: Fix -Wpointer-sign warning

source/net_udp.c:101:64: warning: pointer targets in passing argument 2 of 'sceAppUtilSystemParamGetString' differ in signedness [-Wpointer-sign]
  101 |   sceAppUtilSystemParamGetString(SCE_SYSTEM_PARAM_ID_USERNAME, nick, SCE_SYSTEM_PARAM_USERNAME_MAXSIZE);
      |                                                                ^~~~
      |                                                                |
      |                                                                char *
In file included from /usr/local/vitasdk/arm-vita-eabi/include/psp2/appmgr.h:12,
                 from /usr/local/vitasdk/arm-vita-eabi/include/vitasdk.h:8,
                 from source/net_udp.c:30:
/usr/local/vitasdk/arm-vita-eabi/include/psp2/apputil.h:244:12: note: expected 'SceChar8 *' {aka 'signed char *'} but argument is of type 'char *'
  244 |  SceChar8 *buf, SceSize bufSize);
This commit is contained in:
Peter0x44 2024-06-17 16:29:46 +01:00
parent fa99d2b563
commit b709396d40

View file

@ -97,7 +97,7 @@ sys_socket_t UDP_Init (void)
memset(&init_param, 0, sizeof(SceAppUtilInitParam));
memset(&boot_param, 0, sizeof(SceAppUtilBootParam));
sceAppUtilInit(&init_param, &boot_param);
char nick[SCE_SYSTEM_PARAM_USERNAME_MAXSIZE];
SceChar8 nick[SCE_SYSTEM_PARAM_USERNAME_MAXSIZE];
sceAppUtilSystemParamGetString(SCE_SYSTEM_PARAM_ID_USERNAME, nick, SCE_SYSTEM_PARAM_USERNAME_MAXSIZE);
Cvar_Set ("hostname", nick);
}