This commit is contained in:
Max Lv
2016-01-31 17:21:44 +08:00
parent 2ac55a4a3f
commit da06378915
6 changed files with 36 additions and 29 deletions
+2 -2
View File
@@ -73,7 +73,7 @@ int protect_socket(int fd)
if (connect(sock, (struct sockaddr *)&addr, sizeof(addr)) == -1) {
LOGE("[android] connect() failed: %s (socket fd = %d), path: %s\n",
strerror(errno), sock, path);
strerror(errno), sock, path);
close(sock);
return -1;
}
@@ -122,7 +122,7 @@ int send_traffic_stat(uint64_t tx, uint64_t rx)
if (connect(sock, (struct sockaddr *)&addr, sizeof(addr)) == -1) {
LOGE("[android] connect() failed: %s (socket fd = %d), path: %s\n",
strerror(errno), sock, path);
strerror(errno), sock, path);
close(sock);
return -1;
}