From 4dafd78e261b204c2e67b7ec1a6449c239ca4d1c Mon Sep 17 00:00:00 2001 From: TuxSH Date: Mon, 31 Jul 2017 15:33:20 +0200 Subject: [PATCH] Fix const-correctness (#368) make svcWaitSynchronizationN and svcReplyAndReceive const correct --- libctru/include/3ds/svc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libctru/include/3ds/svc.h b/libctru/include/3ds/svc.h index dc720fc..da75ef3 100644 --- a/libctru/include/3ds/svc.h +++ b/libctru/include/3ds/svc.h @@ -898,7 +898,7 @@ Result svcWaitSynchronization(Handle handle, s64 nanoseconds); * @param wait_all Whether to wait for synchronization on all handles. * @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 @@ -960,7 +960,7 @@ Result svcAcceptSession(Handle* session, Handle port); * @param handleCount Number of handles. * @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.