diff options
author | brian <brian@FreeBSD.org> | 2001-08-19 22:23:28 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-08-19 22:23:28 +0000 |
commit | b379a150f13e54d53270d82e792c92970da25ffb (patch) | |
tree | 6d60eb69970db6e1604927cffc91f4c94df06694 /usr.sbin/ppp/server.c | |
parent | 5d20b14f87a4e1fa28272d23c983762ecf94c3de (diff) | |
download | FreeBSD-src-b379a150f13e54d53270d82e792c92970da25ffb.zip FreeBSD-src-b379a150f13e54d53270d82e792c92970da25ffb.tar.gz |
Add some casts.
Not spotted by: FreeBSD's gcc version 2.95.3 20010315 (release)
Spotted by: OpenBSD's gcc version 2.95.3 20010125 (prerelease)
Diffstat (limited to 'usr.sbin/ppp/server.c')
-rw-r--r-- | usr.sbin/ppp/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/server.c b/usr.sbin/ppp/server.c index cb25f92..c696771 100644 --- a/usr.sbin/ppp/server.c +++ b/usr.sbin/ppp/server.c @@ -326,7 +326,7 @@ server_TcpOpen(struct bundle *bundle, u_short port) if (probe.ipv6_available) { sin6->sin6_family = AF_INET6; sin6->sin6_port = htons(port); - sin6->sin6_len = sizeof ss; + sin6->sin6_len = (u_int8_t)sizeof ss; sz = sizeof *sin6; s = socket(PF_INET6, SOCK_STREAM, 0); } else @@ -334,7 +334,7 @@ server_TcpOpen(struct bundle *bundle, u_short port) { sin->sin_family = AF_INET; sin->sin_port = htons(port); - sin->sin_len = sizeof ss; + sin->sin_len = (u_int8_t)sizeof ss; sin->sin_addr.s_addr = INADDR_ANY; sz = sizeof *sin; s = socket(PF_INET, SOCK_STREAM, 0); |