Browse Source

Remove the return value in traffic IPC

pull/1913/head
Max Lv 6 years ago
parent
commit
1a21989566
2 changed files with 2 additions and 8 deletions
  1. 8
      src/android.c
  2. 2
      src/common.h

8
src/android.c

@ -92,7 +92,7 @@ protect_socket(int fd)
return ret;
}
void
int
send_traffic_stat(uint64_t tx, uint64_t rx)
{
int sock;
@ -129,11 +129,5 @@ send_traffic_stat(uint64_t tx, uint64_t rx)
return -1;
}
if (recv(sock, &ret, 1, 0) == -1) {
ERROR("[android] recv");
close(sock);
return -1;
}
close(sock);
}

2
src/common.h

@ -47,7 +47,7 @@ void free_udprelay(void);
#ifdef __ANDROID__
int protect_socket(int fd);
void send_traffic_stat(uint64_t tx, uint64_t rx);
int send_traffic_stat(uint64_t tx, uint64_t rx);
#endif
#define STAGE_ERROR -1 /* Error detected */

Loading…
Cancel
Save