summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-03-07 10:08:03 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-03-07 10:08:03 -0400
commit9d7b2c5f61f2015d085afde271f791317a131a25 (patch)
treef4349a0046481fe20374175771baf473fd93057f
parent8bb7fa64a9d1abed9b563eca9f95d3ac1a8b6cdc (diff)
TProtocol: Use `const short` variable for return value in
`send(u8 *, size)` This is needed to match now.
-rw-r--r--src/pso/TProtocol.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pso/TProtocol.cpp b/src/pso/TProtocol.cpp
index 0970d39..0e243d0 100644
--- a/src/pso/TProtocol.cpp
+++ b/src/pso/TProtocol.cpp
@@ -71,7 +71,8 @@ void TProtocol::parse_packet() {
}
short TProtocol::send(u8 *data, size_t size) {
- return TTcpSocket::send(data, size);
+ const short ret = TTcpSocket::send(data, size);
+ return ret;
}
void TProtocol::run_task() {