diff options
author | Ryan Loebs <obsidianx@gmail.com> | 2016-03-30 22:51:34 +0200 |
---|---|---|
committer | Ryan Loebs <obsidianx@gmail.com> | 2016-03-30 22:51:34 +0200 |
commit | 2faafff1b961ce735a1e8ffb46f175bd0f993af3 (patch) | |
tree | d9716e1ee9f568fb14fa8ad05cbc00db699daafc | |
parent | Added GetSockOptName (diff) | |
download | yuzu-2faafff1b961ce735a1e8ffb46f175bd0f993af3.tar yuzu-2faafff1b961ce735a1e8ffb46f175bd0f993af3.tar.gz yuzu-2faafff1b961ce735a1e8ffb46f175bd0f993af3.tar.bz2 yuzu-2faafff1b961ce735a1e8ffb46f175bd0f993af3.tar.lz yuzu-2faafff1b961ce735a1e8ffb46f175bd0f993af3.tar.xz yuzu-2faafff1b961ce735a1e8ffb46f175bd0f993af3.tar.zst yuzu-2faafff1b961ce735a1e8ffb46f175bd0f993af3.zip |
-rw-r--r-- | src/core/hle/service/soc_u.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/soc_u.cpp b/src/core/hle/service/soc_u.cpp index 1c3ea03a2..6ab246ba8 100644 --- a/src/core/hle/service/soc_u.cpp +++ b/src/core/hle/service/soc_u.cpp @@ -764,7 +764,7 @@ static void GetSockOpt(Service::Interface* self) { // 0x100 = static buffer offset (bytes) // + 0x4 = 2nd pointer (u32) position // >> 2 = convert to u32 offset instead of byte offset (cmd_buffer = u32*) - char *optval = reinterpret_cast<char *>(Memory::GetPointer(cmd_buffer[0x104 >> 2])); + char* optval = reinterpret_cast<char *>(Memory::GetPointer(cmd_buffer[0x104 >> 2])); ret = ::getsockopt(socket_handle, level, optname, optval, &optlen); err = 0; @@ -796,7 +796,7 @@ static void SetSockOpt(Service::Interface* self) { #endif } else { socklen_t optlen = static_cast<socklen_t>(cmd_buffer[4]); - const char *optval = reinterpret_cast<const char *>(Memory::GetPointer(cmd_buffer[8])); + const char* optval = reinterpret_cast<const char *>(Memory::GetPointer(cmd_buffer[8])); ret = static_cast<u32>(::setsockopt(socket_handle, level, optname, optval, optlen)); err = 0; |