Fix android.c

This commit is contained in:
Mygod
2017-02-02 17:36:59 +08:00
parent 78c3778b58
commit c8bcf594e2
+1 -1
View File
@@ -115,7 +115,7 @@ send_traffic_stat(uint64_t tx, uint64_t rx)
strncpy(addr.sun_path, "stat_path", sizeof(addr.sun_path) - 1);
if (connect(sock, (struct sockaddr *)&addr, sizeof(addr)) == -1) {
LOGE("[android] connect() failed for stat_path: %s (socket fd = %d): %s\n",
LOGE("[android] connect() failed for stat_path: %s (socket fd = %d)\n",
strerror(errno), sock);
close(sock);
return -1;