size_t != int. Make this compile on 64 bit platforms (eg: amd64).

Also, "u_short value; if (value > 0xffff)" can never be true.
This commit is contained in:
Peter Wemm 2003-07-24 01:59:18 +00:00
parent f8bb2e0ffd
commit 7d6207b7dd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117949
3 changed files with 5 additions and 4 deletions

View File

@ -332,7 +332,8 @@ smbfs_init(struct vfsconf *vfsp)
{
#ifndef SMP
int name[2];
int olen, ncpu, plen, error;
int ncpu, error;
size_t olen, plen;
name[0] = CTL_HW;
name[1] = HW_NCPU;

View File

@ -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)

View File

@ -302,8 +302,7 @@ smb_usr_t2request(struct smb_share *ssp, struct smbioc_t2rq *dp,
struct mdchain *mdp;
int error, len;
if (dp->ioc_tparamcnt > 0xffff || dp->ioc_tdatacnt > 0xffff ||
dp->ioc_setupcnt > 3)
if (dp->ioc_setupcnt > 3)
return EINVAL;
error = smb_t2_init(t2p, SSTOCP(ssp), dp->ioc_setup[0], scred);
if (error)