mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-06 06:34:35 +00:00
Remove unused return value
This commit is contained in:
+1
-4
@@ -92,7 +92,7 @@ protect_socket(int fd)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
send_traffic_stat(uint64_t tx, uint64_t rx)
|
||||
{
|
||||
int sock;
|
||||
@@ -129,8 +129,6 @@ send_traffic_stat(uint64_t tx, uint64_t rx)
|
||||
return -1;
|
||||
}
|
||||
|
||||
char ret = 0;
|
||||
|
||||
if (recv(sock, &ret, 1, 0) == -1) {
|
||||
ERROR("[android] recv");
|
||||
close(sock);
|
||||
@@ -138,5 +136,4 @@ send_traffic_stat(uint64_t tx, uint64_t rx)
|
||||
}
|
||||
|
||||
close(sock);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user