From 242a63e95ab5ee286dd02dc0b25dceb6b4f82561 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 25 Feb 2011 06:09:58 -0700 Subject: [PATCH] s3: Fix a 64-bit warning in vfs_gpfs.c Autobuild-User: Volker Lendecke Autobuild-Date: Fri Feb 25 14:56:51 CET 2011 on sn-devel-104 --- source3/modules/vfs_gpfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 462e3c55f1d..7e7ee34ab1f 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -1050,7 +1050,8 @@ static ssize_t gpfs_get_xattr(struct vfs_handle_struct *handle, const char *pat dosmode |= FILE_ATTRIBUTE_SPARSE; } - snprintf(attrstr, size, "0x%2.2x", dosmode & SAMBA_ATTRIBUTES_MASK); + snprintf(attrstr, size, "0x%2.2x", + (unsigned int)(dosmode & SAMBA_ATTRIBUTES_MASK)); DEBUG(10, ("gpfs_get_xattr: returning %s\n",attrstr)); return 4; } -- 2.11.4.GIT