Fix warnings and one compile error caused by newer gcc 4.7.
authorJeremy Allison <jra@samba.org>
Fri, 3 May 2013 17:06:39 +0000 (10:06 -0700)
committerDavid Disseldorp <ddiss@samba.org>
Sun, 5 May 2013 17:01:37 +0000 (19:01 +0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Sun May  5 19:01:38 CEST 2013 on sn-devel-104

source3/modules/vfs_ceph.c

index fdb7feb44fafa594dfb9f48cfe7c932879ef03d6..e402ff114130063349e8180dc860a7e57cfcc91d 100644 (file)
@@ -236,8 +236,8 @@ static int cephwrap_statvfs(struct vfs_handle_struct *handle,  const char *path,
                statbuf->FreeFileNodes = statvfs_buf.f_ffree;
                statbuf->FsIdentifier = statvfs_buf.f_fsid;
                DEBUG(10, ("[CEPH] f_bsize: %ld, f_blocks: %ld, f_bfree: %ld, f_bavail: %ld\n",
-                       statvfs_buf.f_bsize, statvfs_buf.f_blocks,
-                       statvfs_buf.f_bfree, statvfs_buf.f_bavail));
+                       (long int)statvfs_buf.f_bsize, (long int)statvfs_buf.f_blocks,
+                       (long int)statvfs_buf.f_bfree, (long int)statvfs_buf.f_bavail));
        }
        return ret;
 }
@@ -1091,6 +1091,7 @@ static ssize_t cephwrap_listxattr(struct vfs_handle_struct *handle, const char *
        }
 }
 
+#if 0
 static ssize_t cephwrap_llistxattr(struct vfs_handle_struct *handle, const char *path, char *list, size_t size)
 {
        DEBUG(10, ("[CEPH] llistxattr(%p, %s, %p, %llu)\n", handle, path, list, llu(size)));
@@ -1102,12 +1103,13 @@ static ssize_t cephwrap_llistxattr(struct vfs_handle_struct *handle, const char
                return (ssize_t)ret;
        }
 }
+#endif
 
 static ssize_t cephwrap_flistxattr(struct vfs_handle_struct *handle, struct files_struct *fsp, char *list, size_t size)
 {
        DEBUG(10, ("[CEPH] flistxattr(%p, %p, %s, %llu)\n", handle, fsp, list, llu(size)));
        int ret = ceph_listxattr(handle->data, fsp->fsp_name->base_name, list, size);
-       DEBUG(10, ("[CEPH] flistxattr(...)\n", ret));
+       DEBUG(10, ("[CEPH] flistxattr(...) = %d\n", ret));
        if (ret < 0) {
                WRAP_RETURN(ret);
        } else {