]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Remove unused variable line
authorArne Schwabe <arne@rfc2549.org>
Sun, 30 Apr 2023 17:22:02 +0000 (19:22 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 2 May 2023 14:21:03 +0000 (16:21 +0200)
The newer compilers started to complain about this.

Change-Id: I784def4d941b7d21c7979f84f8681719c9ff7a53
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20230430172202.206528-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26612.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/pool.c

index f899b95d21e671bd4520442c9e126ab0bb56b98c..4af9bcb10f73ef0935f2b6bd6b3fc035b355149a 100644 (file)
@@ -608,7 +608,6 @@ ifconfig_pool_read(struct ifconfig_pool_persist *persist, struct ifconfig_pool *
         struct gc_arena gc = gc_new();
         struct buffer in = alloc_buf_gc(256, &gc);
         char *cn_buf, *ip_buf, *ip6_buf;
-        int line = 0;
 
         ALLOC_ARRAY_CLEAR_GC(cn_buf, char, buf_size, &gc);
         ALLOC_ARRAY_CLEAR_GC(ip_buf, char, buf_size, &gc);
@@ -621,7 +620,6 @@ ifconfig_pool_read(struct ifconfig_pool_persist *persist, struct ifconfig_pool *
             {
                 break;
             }
-            ++line;
             if (!BLEN(&in))
             {
                 continue;