]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_ceph_snapshots: fix return value of ceph_snap_gmt_strip_snapshot()
authorRalph Boehme <slow@samba.org>
Mon, 4 May 2020 08:19:35 +0000 (10:19 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 5 May 2020 19:18:43 +0000 (19:18 +0000)
The function returns ints and the callers expect ints. Declaring bool while
returning ints works, as generally compilers implement bools as ints.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_ceph_snapshots.c

index 8e004f0435aa1af97c2653b5c41ae23ec17f5dc4..64605ee066281e310abc432f129d0ebc54394fc7 100644 (file)
@@ -435,7 +435,7 @@ err_out:
        return -1;
 }
 
-static bool ceph_snap_gmt_strip_snapshot(struct vfs_handle_struct *handle,
+static int ceph_snap_gmt_strip_snapshot(struct vfs_handle_struct *handle,
                                         const struct smb_filename *smb_fname,
                                         time_t *_timestamp,
                                         char *_stripped_buf,