From: Volker Lendecke Date: Mon, 23 Nov 2020 14:37:44 +0000 (+0100) Subject: lib: Change make_file_id_from_itime() prototype X-Git-Tag: samba-4.14.0rc1~532 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05f7558b4c42a0e335d65c9acd4b74701a149523;p=thirdparty%2Fsamba.git lib: Change make_file_id_from_itime() prototype 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 Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/file_id.c b/source3/lib/file_id.c index 0cc5a56bc27..6bfcf1463d2 100644 --- a/source3/lib/file_id.c +++ b/source3/lib/file_id.c @@ -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; diff --git a/source3/lib/file_id.h b/source3/lib/file_id.h index a946cb4d692..630d154c077 100644 --- a/source3/lib/file_id.h +++ b/source3/lib/file_id.h @@ -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