From: Guus Sliepen Date: Tue, 2 Nov 2010 13:23:43 +0000 (+0100) Subject: Read error counter must be static. X-Git-Tag: release-1.0.14~36 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=66b7aea294896a99df289231143a506b422b994c;p=tinc Read error counter must be static. --- diff --git a/src/net.c b/src/net.c index bed779a5..08e3cad3 100644 --- a/src/net.c +++ b/src/net.c @@ -280,7 +280,7 @@ static void check_network_activity(fd_set * readset, fd_set * writeset) { int result, i; socklen_t len = sizeof(result); vpn_packet_t packet; - int errors = 0; + static int errors = 0; /* check input from kernel */ if(device_fd >= 0 && FD_ISSET(device_fd, readset)) {