smbd: Remove unused "deferred_pcd" from construct_reply()
authorVolker Lendecke <vl@samba.org>
Mon, 5 Jun 2023 13:58:08 +0000 (15:58 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 5 Jun 2023 17:17:35 +0000 (17:17 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb1_process.c
source3/smbd/smb1_process.h

index 63b246cf69f1492fa35fb5a888d74bc2bcc24981..ed45f9cc89c2431567fd64bae97bf9082afd2796 100644 (file)
@@ -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++;
index 59e37283697eebe090ce03a936707242aac4eef5..5df91e3f73d34e530a9af50037d3b4bfdbf9e633 100644 (file)
@@ -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);