]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove an unused function parameter
authorVolker Lendecke <vl@samba.org>
Thu, 16 May 2024 10:59:28 +0000 (12:59 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 22 May 2024 04:23:29 +0000 (04:23 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/smbd/smb1_reply.c

index 85c6aceaf361150a73a8c78832df4e3c4f300a60..335c92aa3ed7062d9aae8a4f99b2992d6de0fe6b 100644 (file)
@@ -1091,8 +1091,7 @@ void reply_dskattr(struct smb_request *req)
  Make a dir struct.
 ****************************************************************************/
 
-static void make_dir_struct(TALLOC_CTX *ctx,
-                           char *buf,
+static void make_dir_struct(char *buf,
                            const char *mask,
                            const char *fname,
                            off_t size,
@@ -1525,8 +1524,7 @@ void reply_search(struct smb_request *req)
        if ((dirtype&0x1F) == FILE_ATTRIBUTE_VOLUME) {
                char buf[DIR_STRUCT_SIZE];
                memcpy(buf,status,21);
-               make_dir_struct(ctx,
-                               buf,
+               make_dir_struct(buf,
                                "???????????",
                                volume_label(ctx, SNUM(conn)),
                                0,
@@ -1572,15 +1570,14 @@ void reply_search(struct smb_request *req)
                        if (!finished) {
                                char buf[DIR_STRUCT_SIZE];
                                memcpy(buf,status,21);
-                               make_dir_struct(
-                                       ctx,
-                                       buf,
-                                       mask,
-                                       fname,
-                                       size,
-                                       mode,
-                                       convert_timespec_to_time_t(date),
-                                       !allow_long_path_components);
+                               make_dir_struct(buf,
+                                               mask,
+                                               fname,
+                                               size,
+                                               mode,
+                                               convert_timespec_to_time_t(
+                                                       date),
+                                               !allow_long_path_components);
                                SCVAL(buf, 12, dptr_num);
                                PUSH_LE_U32(buf,
                                            13,