diff --git a/nx/include/switch/kernel/ipc.h b/nx/include/switch/kernel/ipc.h index 048c1d55..fff802f7 100644 --- a/nx/include/switch/kernel/ipc.h +++ b/nx/include/switch/kernel/ipc.h @@ -198,13 +198,13 @@ static inline void ipcAddRecvStatic(IpcCommand* cmd, void* buffer, size_t size, /** * @brief Adds a smart-buffer (buffer + static-buffer pair) to an IPC command structure. * @param cmd IPC command structure. - * @param ipc_buffer_size IPC buffer size. + * @param pointer_buffer_size Pointer buffer size. * @param buffer Address of the buffer. * @param size Size of the buffer. * @param index Index of buffer. */ -static inline void ipcAddSendSmart(IpcCommand* cmd, size_t ipc_buffer_size, const void* buffer, size_t size, u8 index) { - if (ipc_buffer_size != 0 && size <= ipc_buffer_size) { +static inline void ipcAddSendSmart(IpcCommand* cmd, size_t pointer_buffer_size, const void* buffer, size_t size, u8 index) { + if (pointer_buffer_size != 0 && size <= pointer_buffer_size) { ipcAddSendBuffer(cmd, NULL, 0, BufferType_Normal); ipcAddSendStatic(cmd, buffer, size, index); } else { @@ -216,13 +216,13 @@ static inline void ipcAddSendSmart(IpcCommand* cmd, size_t ipc_buffer_size, cons /** * @brief Adds a smart-receive-buffer (buffer + static-receive-buffer pair) to an IPC command structure. * @param cmd IPC command structure. - * @param ipc_buffer_size IPC buffer size. + * @param pointer_buffer_size Pointer buffer size. * @param buffer Address of the buffer. * @param size Size of the buffer. * @param index Index of buffer. */ -static inline void ipcAddRecvSmart(IpcCommand* cmd, size_t ipc_buffer_size, void* buffer, size_t size, u8 index) { - if (ipc_buffer_size != 0 && size <= ipc_buffer_size) { +static inline void ipcAddRecvSmart(IpcCommand* cmd, size_t pointer_buffer_size, void* buffer, size_t size, u8 index) { + if (pointer_buffer_size != 0 && size <= pointer_buffer_size) { ipcAddRecvBuffer(cmd, NULL, 0, BufferType_Normal); ipcAddRecvStatic(cmd, buffer, size, index); } else {