]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Make cli_qpathinfo_standard() static
authorVolker Lendecke <vl@samba.org>
Mon, 5 Aug 2024 13:10:00 +0000 (15:10 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 20 Aug 2024 09:34:39 +0000 (09:34 +0000)
Only used to get the size as a fallback

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libsmb/clirap.c
source3/libsmb/clirap.h

index ffc643625c9eb5dd304e841f98c6fcae359f2317..b10dbd56bdf78b8ca5edd95853d2098501ce12d9 100644 (file)
@@ -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;
index 5181ef222906f5c8821c50e1ea485a42095974db..4a0f8cfc04e45db8494d3ab19deeca6b81119cec 100644 (file)
@@ -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,