From: Volker Lendecke Date: Mon, 5 Jun 2023 13:58:08 +0000 (+0200) Subject: smbd: Remove unused "deferred_pcd" from construct_reply() X-Git-Tag: talloc-2.4.1~491 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=155035667966c0d3c8dbec263b53c415dfa50d5e;p=thirdparty%2Fsamba.git smbd: Remove unused "deferred_pcd" from construct_reply() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/smb1_process.c b/source3/smbd/smb1_process.c index 63b246cf69f..ed45f9cc89c 100644 --- a/source3/smbd/smb1_process.c +++ b/source3/smbd/smb1_process.c @@ -1296,9 +1296,11 @@ static connection_struct *switch_message(uint8_t type, struct smb_request *req) ****************************************************************************/ void construct_reply(struct smbXsrv_connection *xconn, - char *inbuf, int size, size_t unread_bytes, - uint32_t seqnum, bool encrypted, - struct smb_perfcount_data *deferred_pcd) + char *inbuf, + int size, + size_t unread_bytes, + uint32_t seqnum, + bool encrypted) { struct smbd_server_connection *sconn = xconn->client->sconn; struct smb_request *req; @@ -1536,8 +1538,12 @@ void process_smb1(struct smbXsrv_connection *xconn, seqnum, encrypted); } else { - construct_reply(xconn, (char *)inbuf, nread, unread_bytes, - seqnum, encrypted, deferred_pcd); + construct_reply(xconn, + (char *)inbuf, + nread, + unread_bytes, + seqnum, + encrypted); } sconn->trans_num++; diff --git a/source3/smbd/smb1_process.h b/source3/smbd/smb1_process.h index 59e37283697..5df91e3f73d 100644 --- a/source3/smbd/smb1_process.h +++ b/source3/smbd/smb1_process.h @@ -60,9 +60,11 @@ void process_smb1(struct smbXsrv_connection *xconn, struct smb_perfcount_data *deferred_pcd); void smbd_echo_init(struct smbXsrv_connection *xconn); void construct_reply(struct smbXsrv_connection *xconn, - char *inbuf, int size, size_t unread_bytes, - uint32_t seqnum, bool encrypted, - struct smb_perfcount_data *deferred_pcd); + char *inbuf, + int size, + size_t unread_bytes, + uint32_t seqnum, + bool encrypted); void smbd_smb1_server_connection_read_handler(struct smbXsrv_connection *xconn, int fd); bool keepalive_fn(const struct timeval *now, void *private_data);