mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 23:40:13 +00:00
Windows: remove potential data loss warning with cast
Change-Id: If9cbe1b777452dba5b0785d8abfccb9ec31540e3 Reviewed-on: http://gerrit.openafs.org/5349 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Jeffrey Altman <jaltman@openafs.org> Tested-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
parent
722843e2df
commit
2588dd1247
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user