From 79742b2d021b99425d4c9ceac871deb6b8967cee Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 22 Mar 2019 14:00:43 +0300 Subject: fixes #1660 completely --- plugins/NotesAndReminders/src/miscutils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/NotesAndReminders/src/miscutils.cpp') diff --git a/plugins/NotesAndReminders/src/miscutils.cpp b/plugins/NotesAndReminders/src/miscutils.cpp index 676bfbbed9..8e2197ff55 100644 --- a/plugins/NotesAndReminders/src/miscutils.cpp +++ b/plugins/NotesAndReminders/src/miscutils.cpp @@ -38,7 +38,7 @@ void WS_CleanUp() WSACleanup(); } -int WS_Send(SOCKET s, char *data, int datalen) +int WS_Send(SOCKET s, const char *data, int datalen) { int rlen; if ((rlen = send(s, data, datalen, 0)) == SOCKET_ERROR) return FALSE; @@ -68,7 +68,7 @@ unsigned long WS_ResolveName(char *name, WORD *port, int defaultPort) return ret; } -void Send(char *user, char *host, char *Msg, char *server) +void Send(char *user, char *host, const char *Msg, char *server) { SOCKADDR_IN sockaddr; WORD port; -- cgit v1.2.3