diff options
author | Lioncash <mathew1800@gmail.com> | 2020-12-08 04:00:34 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-12-08 05:02:23 +0100 |
commit | 6b7320add44bf3d933063d0b93296222fd522ef6 (patch) | |
tree | 06cb434947232a7105e955a8237285a15ac5556b /src/core/network | |
parent | Merge pull request #5164 from lioncash/contains (diff) | |
download | yuzu-6b7320add44bf3d933063d0b93296222fd522ef6.tar yuzu-6b7320add44bf3d933063d0b93296222fd522ef6.tar.gz yuzu-6b7320add44bf3d933063d0b93296222fd522ef6.tar.bz2 yuzu-6b7320add44bf3d933063d0b93296222fd522ef6.tar.lz yuzu-6b7320add44bf3d933063d0b93296222fd522ef6.tar.xz yuzu-6b7320add44bf3d933063d0b93296222fd522ef6.tar.zst yuzu-6b7320add44bf3d933063d0b93296222fd522ef6.zip |
Diffstat (limited to 'src/core/network')
-rw-r--r-- | src/core/network/network.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/network/network.cpp b/src/core/network/network.cpp index 5a8cc6fc2..f0c4b88fc 100644 --- a/src/core/network/network.cpp +++ b/src/core/network/network.cpp @@ -63,7 +63,7 @@ sockaddr TranslateFromSockAddrIn(SockAddrIn input) { result.sin_family = AF_INET; break; default: - UNIMPLEMENTED_MSG("Unhandled sockaddr family={}", static_cast<int>(input.family)); + UNIMPLEMENTED_MSG("Unhandled sockaddr family={}", input.family); result.sin_family = AF_INET; break; } @@ -133,7 +133,7 @@ sockaddr TranslateFromSockAddrIn(SockAddrIn input) { result.sin_family = AF_INET; break; default: - UNIMPLEMENTED_MSG("Unhandled sockaddr family={}", static_cast<int>(input.family)); + UNIMPLEMENTED_MSG("Unhandled sockaddr family={}", input.family); result.sin_family = AF_INET; break; } @@ -186,7 +186,7 @@ int TranslateDomain(Domain domain) { case Domain::INET: return AF_INET; default: - UNIMPLEMENTED_MSG("Unimplemented domain={}", static_cast<int>(domain)); + UNIMPLEMENTED_MSG("Unimplemented domain={}", domain); return 0; } } @@ -198,7 +198,7 @@ int TranslateType(Type type) { case Type::DGRAM: return SOCK_DGRAM; default: - UNIMPLEMENTED_MSG("Unimplemented type={}", static_cast<int>(type)); + UNIMPLEMENTED_MSG("Unimplemented type={}", type); return 0; } } @@ -210,7 +210,7 @@ int TranslateProtocol(Protocol protocol) { case Protocol::UDP: return IPPROTO_UDP; default: - UNIMPLEMENTED_MSG("Unimplemented protocol={}", static_cast<int>(protocol)); + UNIMPLEMENTED_MSG("Unimplemented protocol={}", protocol); return 0; } } @@ -482,7 +482,7 @@ Errno Socket::Shutdown(ShutdownHow how) { host_how = SD_BOTH; break; default: - UNIMPLEMENTED_MSG("Unimplemented flag how={}", static_cast<int>(how)); + UNIMPLEMENTED_MSG("Unimplemented flag how={}", how); return Errno::SUCCESS; } if (shutdown(fd, host_how) != SOCKET_ERROR) { |