X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a85139a1b7d2b6b291d6eb4df74a1da24f843982..90da75e673f51b30e04629035d8bf7501fd00e30:/samples/sockets/client.cpp diff --git a/samples/sockets/client.cpp b/samples/sockets/client.cpp index fb1a153b87..5f68600702 100644 --- a/samples/sockets/client.cpp +++ b/samples/sockets/client.cpp @@ -367,7 +367,7 @@ void MyFrame::OnTest1(wxCommandEvent& WXUNUSED(event)) buf2 = new char[len]; m_text->AppendText(_("Sending a test buffer to the server ...")); - m_sock->Write((char *)&len, 1); + m_sock->Write(&len, 1); m_sock->Write(buf1, len); m_text->AppendText(m_sock->Error() ? _("failed !\n") : _("done\n")); @@ -494,7 +494,7 @@ void MyFrame::OnTest3(wxCommandEvent& WXUNUSED(event)) buf1[i] = (char)(i % 256); m_text->AppendText(_("Sending a large buffer (32K) to the server ...")); - m_sock->Write((char *)&len, 1); + m_sock->Write(&len, 1); m_sock->Write(buf1, len * 1024); m_text->AppendText(m_sock->Error() ? _("failed !\n") : _("done\n")); @@ -528,7 +528,7 @@ void MyFrame::OnCloseConnection(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnDatagram(wxCommandEvent& WXUNUSED(event)) { - m_text->AppendText(_("=== Datagram test begins ===\n")); + m_text->AppendText(_("\n=== Datagram test begins ===\n")); m_text->AppendText(_("Sorry, not implemented\n")); m_text->AppendText(_("=== Datagram test ends ===\n")); }