summaryrefslogtreecommitdiffstats
path: root/sys/netncp/ncp_ncp.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-07-24 01:59:18 +0000
committerpeter <peter@FreeBSD.org>2003-07-24 01:59:18 +0000
commit44b5ea3111c5c9286ae04a396c766901e8e5b55c (patch)
tree807dfc524631c0ba48c0e801bb54602242f1827f /sys/netncp/ncp_ncp.c
parenta60ef94facf7f32b340fddd9ffef174eddc4d826 (diff)
downloadFreeBSD-src-44b5ea3111c5c9286ae04a396c766901e8e5b55c.zip
FreeBSD-src-44b5ea3111c5c9286ae04a396c766901e8e5b55c.tar.gz
size_t != int. Make this compile on 64 bit platforms (eg: amd64).
Also, "u_short value; if (value > 0xffff)" can never be true.
Diffstat (limited to 'sys/netncp/ncp_ncp.c')
-rw-r--r--sys/netncp/ncp_ncp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netncp/ncp_ncp.c b/sys/netncp/ncp_ncp.c
index e7b5e16..bf51b43 100644
--- a/sys/netncp/ncp_ncp.c
+++ b/sys/netncp/ncp_ncp.c
@@ -206,7 +206,8 @@ int
ncp_renegotiate_connparam(struct ncp_conn *conn, int buffsize, u_int8_t in_options)
{
u_int8_t options;
- int neg_buffsize, error, sl, ckslevel, ilen;
+ int neg_buffsize, error, sl, ckslevel;
+ size_t ilen;
sl = conn->li.sig_level;
if (sl >= 2)
OpenPOWER on IntegriCloud