From 81bdb5910c8f84bd9e83c76a78370884e8f638f8 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 3 Oct 2010 18:04:05 +0200 Subject: s3: Rename "conn" to the more used "sconn" in process_smb() --- source3/smbd/process.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 763ee56747..91627e9cff 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -1636,7 +1636,7 @@ static void construct_reply(char *inbuf, int size, size_t unread_bytes, /**************************************************************************** Process an smb from the client ****************************************************************************/ -static void process_smb(struct smbd_server_connection *conn, +static void process_smb(struct smbd_server_connection *sconn, uint8_t *inbuf, size_t nread, size_t unread_bytes, uint32_t seqnum, bool encrypted, struct smb_perfcount_data *deferred_pcd) @@ -1648,17 +1648,17 @@ static void process_smb(struct smbd_server_connection *conn, DEBUG( 6, ( "got message type 0x%x of len 0x%x\n", msg_type, smb_len(inbuf) ) ); DEBUG(3, ("Transaction %d of length %d (%u toread)\n", - conn->trans_num, (int)nread, (unsigned int)unread_bytes)); + sconn->trans_num, (int)nread, (unsigned int)unread_bytes)); if (msg_type != 0) { /* * NetBIOS session request, keepalive, etc. */ - reply_special(conn, (char *)inbuf, nread); + reply_special(sconn, (char *)inbuf, nread); goto done; } - if (smbd_server_conn->using_smb2) { + if (sconn->using_smb2) { /* At this point we're not really using smb2, * we make the decision here.. */ if (smbd_is_smb2_header(inbuf, nread)) { @@ -1675,10 +1675,10 @@ static void process_smb(struct smbd_server_connection *conn, show_msg((char *)inbuf); construct_reply((char *)inbuf,nread,unread_bytes,seqnum,encrypted,deferred_pcd); - conn->trans_num++; + sconn->trans_num++; done: - conn->smb1.num_requests++; + sconn->smb1.num_requests++; /* The timeout_processing function isn't run nearly often enough to implement 'max log size' without @@ -1687,7 +1687,7 @@ done: level 10. Checking every 50 SMBs is a nice tradeoff of performance vs log file size overrun. */ - if ((conn->smb1.num_requests % 50) == 0 && + if ((sconn->smb1.num_requests % 50) == 0 && need_to_check_log_size()) { change_to_root_user(); check_log_size(); -- cgit