From: Volker Lendecke Date: Thu, 16 May 2024 10:59:28 +0000 (+0200) Subject: smbd: Remove an unused function parameter X-Git-Tag: tdb-1.4.11~619 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd1dd65026e7e658ec753d651f50ef2c4920cfc6;p=thirdparty%2Fsamba.git smbd: Remove an unused function parameter Signed-off-by: Volker Lendecke Reviewed-by: Andrew Bartlett --- diff --git a/source3/smbd/smb1_reply.c b/source3/smbd/smb1_reply.c index 85c6aceaf36..335c92aa3ed 100644 --- a/source3/smbd/smb1_reply.c +++ b/source3/smbd/smb1_reply.c @@ -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,