Browse Source

Fix android.c

pull/1171/head
Mygod 7 years ago
parent
commit
c8bcf594e2
1 changed files with 1 additions and 1 deletions
  1. 2
      src/android.c

2
src/android.c

@ -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;

Loading…
Cancel
Save