From: Ralph Boehme Date: Mon, 4 May 2020 08:19:35 +0000 (+0200) Subject: vfs_ceph_snapshots: fix return value of ceph_snap_gmt_strip_snapshot() X-Git-Tag: ldb-2.2.0~656 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a52e3f0f83f6d3c7784dcfa2a2e420a5b83273d;p=thirdparty%2Fsamba.git vfs_ceph_snapshots: fix return value of ceph_snap_gmt_strip_snapshot() 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 Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_ceph_snapshots.c b/source3/modules/vfs_ceph_snapshots.c index 8e004f0435a..64605ee0662 100644 --- a/source3/modules/vfs_ceph_snapshots.c +++ b/source3/modules/vfs_ceph_snapshots.c @@ -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,