From: Volker Lendecke Date: Mon, 5 Aug 2024 13:10:00 +0000 (+0200) Subject: libsmb: Make cli_qpathinfo_standard() static X-Git-Tag: tdb-1.4.13~1376 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=73c6a7f13c20b77c1f2a5045a52ac57f422ce42c;p=thirdparty%2Fsamba.git libsmb: Make cli_qpathinfo_standard() static Only used to get the size as a fallback Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider --- diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c index ffc643625c9..b10dbd56bdf 100644 --- a/source3/libsmb/clirap.c +++ b/source3/libsmb/clirap.c @@ -1672,10 +1672,13 @@ NTSTATUS cli_qpathinfo_alt_name(struct cli_state *cli, const char *fname, fstrin Send a qpathinfo SMB_QUERY_FILE_STANDARD_INFO call. ****************************************************************************/ -NTSTATUS cli_qpathinfo_standard(struct cli_state *cli, const char *fname, - uint64_t *allocated, uint64_t *size, - uint32_t *nlinks, - bool *is_del_pending, bool *is_dir) +static NTSTATUS cli_qpathinfo_standard(struct cli_state *cli, + const char *fname, + uint64_t *allocated, + uint64_t *size, + uint32_t *nlinks, + bool *is_del_pending, + bool *is_dir) { uint8_t *rdata; uint32_t num_rdata; diff --git a/source3/libsmb/clirap.h b/source3/libsmb/clirap.h index 5181ef22290..4a0f8cfc04e 100644 --- a/source3/libsmb/clirap.h +++ b/source3/libsmb/clirap.h @@ -143,10 +143,6 @@ NTSTATUS cli_qpathinfo_basic_recv(struct tevent_req *req, SMB_STRUCT_STAT *sbuf, uint32_t *attributes); NTSTATUS cli_qpathinfo_basic(struct cli_state *cli, const char *name, SMB_STRUCT_STAT *sbuf, uint32_t *attributes); -NTSTATUS cli_qpathinfo_standard(struct cli_state *cli, const char *fname, - uint64_t *allocated, uint64_t *size, - uint32_t *nlinks, - bool *is_del_pending, bool *is_dir); NTSTATUS cli_qpathinfo_alt_name(struct cli_state *cli, const char *fname, fstring alt_name); struct tevent_req *cli_qpathinfo_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,