summaryrefslogtreecommitdiff
path: root/src/pso
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-03-07 10:07:04 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-03-07 10:07:04 -0400
commit8bb7fa64a9d1abed9b563eca9f95d3ac1a8b6cdc (patch)
treeeae893d13e2fb0ead6373488177a0a3c38dfdf5c /src/pso
parent8ec0ae94e0a82915d336737b32268978be638524 (diff)
T{Tcp,}Socket: Make `send(u8 *, size_t)` return the proper type
Diffstat (limited to 'src/pso')
-rw-r--r--src/pso/TTcpSocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pso/TTcpSocket.cpp b/src/pso/TTcpSocket.cpp
index beb5565..949f962 100644
--- a/src/pso/TTcpSocket.cpp
+++ b/src/pso/TTcpSocket.cpp
@@ -93,7 +93,7 @@ void TTcpSocket::notify(short size, short sock_fd) {
}
}
-int TTcpSocket::send(u8 *data, size_t size) {
+short TTcpSocket::send(u8 *data, size_t size) {
if (sock_fd() != -1) {
if (!m_is_encrypted) {
m_send_crypt.encrypt(data, size);