Remove an unused variable.
authorGuus Sliepen <guus@sliepen.org>
Wed, 20 Nov 2013 22:02:20 +0000 (23:02 +0100)
committerGuus Sliepen <guus@sliepen.org>
Wed, 20 Nov 2013 22:02:20 +0000 (23:02 +0100)
src/net_socket.c

index ab3c17e02a110b41d9044cdc25c15c3c74ca4a0b..6828da7a8ce23b9213f9f00fd43f388400aa7448 100644 (file)
@@ -594,7 +594,6 @@ void handle_new_meta_connection(void *data, int flags) {
        // Check if we get many connections from the same host
 
        static sockaddr_t prev_sa;
-       static time_t prev_time;
        static int tarpit = -1;
 
        if(tarpit >= 0) {
@@ -621,7 +620,6 @@ void handle_new_meta_connection(void *data, int flags) {
        }
 
        memcpy(&prev_sa, &sa, sizeof sa);
-       prev_time = now.tv_sec;
 
        // Check if we get many connections from different hosts