]> git.ozlabs.org Git - ppp.git/commitdiff
Fixing CLang warnings related to using pointers of different signedness (int* vs...
authorEivind Næss <eivnaes@yahoo.com>
Mon, 20 Sep 2021 17:18:50 +0000 (10:18 -0700)
committerEivind Næss <eivnaes@yahoo.com>
Mon, 20 Sep 2021 17:18:50 +0000 (10:18 -0700)
Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
pppd/plugins/pppol2tp/pppol2tp.c

index 3716091d403b2974f629cfc0639ca855369fef8d..9abda1a1e9fb56e7200234ba0c80e7c8fe762b4d 100644 (file)
@@ -125,10 +125,10 @@ static int setdevname_pppol2tp(char **argv)
                char buffer[128];
                struct sockaddr pppol2tp;
        } s;
-       int len = sizeof(s);
+       socklen_t len = sizeof(s);
        char **a;
        int tmp;
-       int tmp_len = sizeof(tmp);
+       socklen_t tmp_len = sizeof(tmp);
 
        if (device_got_set)
                return 0;