mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-26 10:43:43 +00:00
fix build error
This commit is contained in:
+1
-1
@@ -122,7 +122,7 @@ int send_traffic_stat(uint64_t tx, uint64_t rx)
|
||||
}
|
||||
|
||||
char stat[256] = {0};
|
||||
snprintf(stat, 256, "%" PRIu64 "|%" PRIu64, tx, rx);
|
||||
snprintf(stat, 256, "%llu|%llu", tx, rx);
|
||||
size_t len = strlen(stat);
|
||||
|
||||
if (send(sock, stat, len, 0) == -1) {
|
||||
|
||||
+2
-2
@@ -1156,7 +1156,7 @@ int main(int argc, char **argv)
|
||||
|
||||
#ifdef ANDROID
|
||||
ev_timer_init(&stat_timer, stat_update_cb, 1, 1);
|
||||
ev_timer_start(loop, stat_timer);
|
||||
ev_timer_start(loop, &stat_timer);
|
||||
#endif
|
||||
|
||||
// Setup socket
|
||||
@@ -1202,7 +1202,7 @@ int main(int argc, char **argv)
|
||||
// Clean up
|
||||
|
||||
#ifdef ANDROID
|
||||
ev_timer_stop(loop, stat_timer);
|
||||
ev_timer_stop(loop, &stat_timer);
|
||||
#endif
|
||||
|
||||
ev_io_stop(loop, &listen_ctx.io);
|
||||
|
||||
Reference in New Issue
Block a user