Switch write_sockets() and read_sockets() from unsigned char * to char *

This commit is contained in:
Kevin Easton
2015-06-20 08:43:00 +10:00
parent 8649c17912
commit cce8b30079
3 changed files with 7 additions and 7 deletions

View File

@@ -3575,13 +3575,13 @@ int check_dcc_socket(int s)
return 0;
}
int BX_write_sockets(int s, unsigned char *str, int len, int nl)
int BX_write_sockets(int s, char *str, int len, int nl)
{
if (s < 1)
return -1;
if (nl)
{
unsigned char *buf;
char *buf;
buf = alloca(strlen(str)+4);
strcpy(buf, str);
strcat(buf, "\r\n");
@@ -3591,7 +3591,7 @@ int BX_write_sockets(int s, unsigned char *str, int len, int nl)
return write(s, str, len);
}
int BX_read_sockets(int s, unsigned char *str, int len)
int BX_read_sockets(int s, char *str, int len)
{
if (s < 1)
return -1;