]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Change make_file_id_from_itime() prototype
authorVolker Lendecke <vl@samba.org>
Mon, 23 Nov 2020 14:37:44 +0000 (15:37 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 30 Nov 2020 22:24:38 +0000 (22:24 +0000)
SMB_STRUCT_STAT is defined in includes.h. This way including file_id.h
is possible without including includes.h

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/file_id.c
source3/lib/file_id.h

index 0cc5a56bc27a131e11c732061c3da902fc734cf9..6bfcf1463d211006b62d4ab1e700843cdff75903 100644 (file)
@@ -81,7 +81,7 @@ void pull_file_id_24(const char *buf, struct file_id *id)
        id->extid |= ((uint64_t)IVAL(buf,20))<<32;
 }
 
-uint64_t make_file_id_from_itime(SMB_STRUCT_STAT *st)
+uint64_t make_file_id_from_itime(const struct stat_ex *st)
 {
        struct timespec itime = st->st_ex_itime;
        ino_t ino = st->st_ex_ino;
index a946cb4d692e46f70d2c05579f43e822776b3864..630d154c077f05377231fa9f6ca4ad660f7a3f5b 100644 (file)
@@ -44,6 +44,7 @@ void pull_file_id_24(const char *buf, struct file_id *id);
 /*
  * Make a SMB File-ID from itime
  */
-uint64_t make_file_id_from_itime(SMB_STRUCT_STAT *st);
+struct stat_ex;
+uint64_t make_file_id_from_itime(const struct stat_ex *st);
 
 #endif