]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
no C99 declarations
authorDaniel Lenski <dlenski@gmail.com>
Wed, 20 May 2020 22:07:10 +0000 (15:07 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Wed, 20 May 2020 22:07:55 +0000 (15:07 -0700)
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
ppp.c

diff --git a/ppp.c b/ppp.c
index 1ec8a16b62a998869c65d04a2eced1a2be09df13..a6ff38d14783638f2460b5a9d5a3a534e344ca69 100644 (file)
--- a/ppp.c
+++ b/ppp.c
@@ -504,7 +504,7 @@ static int queue_config_request(struct openconnect_info *vpninfo, int proto)
 {
        struct oc_ppp *ppp = vpninfo->ppp;
        const uint32_t zero = 0;
-       int ret, id;
+       int ret, id, b;
        struct oc_ncp *ncp;
        struct oc_text_buf *buf;
 
@@ -552,7 +552,7 @@ static int queue_config_request(struct openconnect_info *vpninfo, int proto)
                buf_append_ppp_tlv(buf, IPCP_IPADDR, 4, &ppp->out_ipv4_addr.s_addr);
 
                /* XX: See ppp.h for why bitfields work here */
-               for (int b=0; b<4; b++)
+               for (b=0; b<4; b++)
                        if (ppp->solicit_peerns & (1<<b))
                                buf_append_ppp_tlv(buf, IPCP_xNS_BASE + b, 4, &zero);
                break;