Fix const-correctness (#368)

make svcWaitSynchronizationN and svcReplyAndReceive const correct
This commit is contained in:
TuxSH 2017-07-31 15:33:20 +02:00 committed by Dave Murphy
parent 6a6dc3be4a
commit 4dafd78e26

View File

@ -898,7 +898,7 @@ Result svcWaitSynchronization(Handle handle, s64 nanoseconds);
* @param wait_all Whether to wait for synchronization on all handles. * @param wait_all Whether to wait for synchronization on all handles.
* @param nanoseconds Maximum nanoseconds to wait for. * @param nanoseconds Maximum nanoseconds to wait for.
*/ */
Result svcWaitSynchronizationN(s32* out, Handle* handles, s32 handles_num, bool wait_all, s64 nanoseconds); Result svcWaitSynchronizationN(s32* out, const Handle* handles, s32 handles_num, bool wait_all, s64 nanoseconds);
/** /**
* @brief Creates an address arbiter * @brief Creates an address arbiter
@ -960,7 +960,7 @@ Result svcAcceptSession(Handle* session, Handle port);
* @param handleCount Number of handles. * @param handleCount Number of handles.
* @param replyTarget Handle of the session to reply to. * @param replyTarget Handle of the session to reply to.
*/ */
Result svcReplyAndReceive(s32* index, Handle* handles, s32 handleCount, Handle replyTarget); Result svcReplyAndReceive(s32* index, const Handle* handles, s32 handleCount, Handle replyTarget);
/** /**
* @brief Binds an event or semaphore handle to an ARM11 interrupt. * @brief Binds an event or semaphore handle to an ARM11 interrupt.