mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-23 03:45:00 +00:00
kernel: Const correctness
This commit is contained in:
parent
c081663aac
commit
c8ed338d5a
4 changed files with 3 additions and 3 deletions
|
@ -126,7 +126,7 @@ int PS4_SYSV_ABI posix_close(int d) {
|
|||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
size_t PS4_SYSV_ABI sceKernelWrite(int d, void* buf, size_t nbytes) {
|
||||
size_t PS4_SYSV_ABI sceKernelWrite(int d, const void* buf, size_t nbytes) {
|
||||
if (d <= 2) { // stdin,stdout,stderr
|
||||
char* str = strdup((const char*)buf);
|
||||
if (str[nbytes - 1] == '\n')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue