summaryrefslogtreecommitdiff
path: root/libpcsxcore/socket.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-05-23 18:06:48 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-05-23 19:03:11 +0200
commit850010a96b6cbc3eae03edd891e50325e017b678 (patch)
tree391100fb00f0bf3fe7aae8c9a574c72d8ce9b17b /libpcsxcore/socket.c
parent470da05658a97a51bd2ad2db7834bcc13dd995fd (diff)
downloadpcsxr-850010a96b6cbc3eae03edd891e50325e017b678.tar.gz
Replaced in-house gdb stub by MIT-licensed implementation
Imported from a fork of https://github.com/mborgerson/gdbstub
Diffstat (limited to 'libpcsxcore/socket.c')
-rw-r--r--libpcsxcore/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpcsxcore/socket.c b/libpcsxcore/socket.c
index 1faffd3d..51aefdf7 100644
--- a/libpcsxcore/socket.c
+++ b/libpcsxcore/socket.c
@@ -252,8 +252,8 @@ int RawReadSocket(int client_socket, char *buffer, size_t len) {
#endif
}
-void WriteSocket(int client_socket, const char *buffer, size_t len) {
- if (!client_socket)
+void WriteSocket(int client_socket, const void *buffer, size_t len) {
+ if (client_socket <= 0)
return;
if (send(client_socket, buffer, len, 0) == -1) {