mirror of
https://github.com/nzp-team/quakespasm.git
synced 2024-11-10 06:32:03 +00:00
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:
parent
fa99d2b563
commit
b709396d40
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue