From: Jeffrey Altman Date: Sun, 4 Sep 2011 00:03:28 +0000 (-0400) Subject: Windows: remove potential data loss warning with cast X-Git-Tag: upstream/1.8.0_pre1^2~3324 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2588dd12478afb96a72f0cd788233ecf2145830f;p=packages%2Fo%2Fopenafs.git Windows: remove potential data loss warning with cast Change-Id: If9cbe1b777452dba5b0785d8abfccb9ec31540e3 Reviewed-on: http://gerrit.openafs.org/5349 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/WINNT/afsd/smb_ioctl.c b/src/WINNT/afsd/smb_ioctl.c index 3dc9752e7..dd4720a40 100644 --- a/src/WINNT/afsd/smb_ioctl.c +++ b/src/WINNT/afsd/smb_ioctl.c @@ -646,7 +646,7 @@ smb_ParseIoctlPath(smb_ioctl_t *ioctlp, cm_user_t *userp, cm_req_t *reqp, if (relativePath[0] == relativePath[1] && relativePath[1] == '\\' && !cm_ClientStrCmpNI(cm_NetbiosNameC, relativePath+2, - cm_ClientStrLen(cm_NetbiosNameC))) + (int)cm_ClientStrLen(cm_NetbiosNameC))) { clientchar_t shareName[256]; clientchar_t *sharePath; @@ -897,7 +897,7 @@ smb_ParseIoctlParent(smb_ioctl_t *ioctlp, cm_user_t *userp, cm_req_t *reqp, if (tbuffer[0] == tbuffer[1] && tbuffer[1] == '\\' && !cm_ClientStrCmpNI(cm_NetbiosNameC, tbuffer+2, - cm_ClientStrLen(cm_NetbiosNameC))) + (int)cm_ClientStrLen(cm_NetbiosNameC))) { clientchar_t shareName[256]; clientchar_t *sharePath; @@ -1235,7 +1235,7 @@ smb_IoctlGetSMBName(smb_ioctl_t *ioctlp, cm_user_t *userp, afs_uint32 pflags) cch = cm_ClientStringToUtf8(uidp->unp->name, -1, ioctlp->ioctl.outDatap, - (SMB_IOCTL_MAXDATA - + (int)(SMB_IOCTL_MAXDATA - (ioctlp->ioctl.outDatap - ioctlp->ioctl.outAllocp)) / sizeof(cm_utf8char_t));