diff options
author | peter <peter@FreeBSD.org> | 2003-07-24 01:59:18 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-07-24 01:59:18 +0000 |
commit | 44b5ea3111c5c9286ae04a396c766901e8e5b55c (patch) | |
tree | 807dfc524631c0ba48c0e801bb54602242f1827f /sys/netncp | |
parent | a60ef94facf7f32b340fddd9ffef174eddc4d826 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/netncp/ncp_ncp.c | 3 |
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) |