diff --git a/src/network/doc/snippets/network/tcpwait.cpp b/src/network/doc/snippets/network/tcpwait.cpp index 1ccac0850b..4da258f197 100644 --- a/src/network/doc/snippets/network/tcpwait.cpp +++ b/src/network/doc/snippets/network/tcpwait.cpp @@ -50,7 +50,7 @@ #include -void test_tcpwait() +int test_tcpwait() { QTcpSocket socket; socket.connectToHost("localhost", 1025); @@ -69,4 +69,5 @@ void test_tcpwait() break; } //! [0] + return numReadTotal; }