diff options
author | Eivind Næss <eivnaes@yahoo.com> | 2021-09-20 10:18:50 -0700 |
---|---|---|
committer | Eivind Næss <eivnaes@yahoo.com> | 2021-09-20 10:18:50 -0700 |
commit | becb072873ef4d47594a9ff0b1ee3d6fda55424a (patch) | |
tree | 6e5aa04de48f58cb1b7cff31f28df47d32a91880 /pppd/plugins | |
parent | 29c8e1ecca44a9c784595a7bc9477900d36cecf4 (diff) | |
download | ppp-becb072873ef4d47594a9ff0b1ee3d6fda55424a.tar.gz |
Fixing CLang warnings related to using pointers of different signedness (int* vs unsigned int* in definition of socklen_t).
Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
Diffstat (limited to 'pppd/plugins')
-rw-r--r-- | pppd/plugins/pppol2tp/pppol2tp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pppd/plugins/pppol2tp/pppol2tp.c b/pppd/plugins/pppol2tp/pppol2tp.c index 3716091..9abda1a 100644 --- a/pppd/plugins/pppol2tp/pppol2tp.c +++ b/pppd/plugins/pppol2tp/pppol2tp.c @@ -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; |