From f62096f98631925897fbc043446c7116a634bd0d Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 14 Dec 2017 13:42:54 +0000 Subject: [PATCH] Remove ntohl from GetRemoteIP on android (Thanks @cnorthrop for catch) * Since android uses local abstract sockets, this seems to not be needed --- renderdoc/os/posix/android/android_network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/os/posix/android/android_network.cpp b/renderdoc/os/posix/android/android_network.cpp index 7a4694821..5bd8bb541 100644 --- a/renderdoc/os/posix/android/android_network.cpp +++ b/renderdoc/os/posix/android/android_network.cpp @@ -31,7 +31,7 @@ namespace Network uint32_t Socket::GetRemoteIP() const { // Android uses abstract sockets which are only "localhost" accessible - return ntohl(MakeIP(127, 0, 0, 1)); + return MakeIP(127, 0, 0, 1); } Socket *CreateServerSocket(const char * /* bindaddr */, uint16_t port, int queuesize)