https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1971137a5fe7ba52ac8166c8282fd71f6ce7069f

commit 1971137a5fe7ba52ac8166c8282fd71f6ce7069f
Author:     Serge Gautherie <32623169+sergegauthe...@users.noreply.github.com>
AuthorDate: Sat Jan 27 10:50:10 2018 +0100
Commit:     Alexander Shaposhnikov <sanch...@reactos.org>
CommitDate: Sat Jan 27 11:50:10 2018 +0200

    [KMTEST] TcpIpConnect: Fix harmless typos (#299)
    
    - 1 s/ok_bool_true/ok/, overkill though harmless.
    - 1 s/ntohs/htons/, typo though harmless.
    
    ROSTESTS-274
---
 modules/rostests/kmtests/tcpip/TcpIp_user.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/rostests/kmtests/tcpip/TcpIp_user.c 
b/modules/rostests/kmtests/tcpip/TcpIp_user.c
index cf699810a0..7d9fb562a9 100644
--- a/modules/rostests/kmtests/tcpip/TcpIp_user.c
+++ b/modules/rostests/kmtests/tcpip/TcpIp_user.c
@@ -57,7 +57,7 @@ AcceptProc(
     ok(Error == 0, "");
 
     ListenSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
-    ok_bool_true(ListenSocket != INVALID_SOCKET, "socket failed");
+    ok(ListenSocket != INVALID_SOCKET, "socket failed");
 
     ZeroMemory(&ListenAddress, sizeof(ListenAddress));
     ListenAddress.sin_addr.S_un.S_addr = inet_addr("127.0.0.1");
@@ -77,7 +77,7 @@ AcceptProc(
     ok(AcceptSocket != INVALID_SOCKET, "\n");
     ok_eq_long(AcceptAddressLength, sizeof(AcceptAddress));
     ok_eq_hex(AcceptAddress.sin_addr.S_un.S_addr, inet_addr("127.0.0.1"));
-    ok_eq_hex(AcceptAddress.sin_port, ntohs(TEST_CONNECT_CLIENT_PORT));
+    ok_eq_hex(AcceptAddress.sin_port, htons(TEST_CONNECT_CLIENT_PORT));
 
     return 0;
 }

Reply via email to