From: Volker Lendecke Date: Sun, 27 May 2007 16:22:12 +0000 (+0000) Subject: r23167: Remove an unused parameter X-Git-Tag: samba-4.0.0alpha6~801^2~5769 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=f3c477c631e7318ccaa6f277731b721a462112b8;p=samba.git r23167: Remove an unused parameter (This used to be commit 3452a870d58cdddf03ddf6ee698bca8416e05cbf) --- diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 6101f9a0f59..780880cbe7e 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -1396,7 +1396,7 @@ void start_background_queue(void) /* Child. */ DEBUG(5,("start_background_queue: background LPQ thread started\n")); - claim_connection( NULL, "smbd lpq backend", 0, False, + claim_connection( NULL, "smbd lpq backend", 0, FLAG_MSG_GENERAL|FLAG_MSG_SMBD|FLAG_MSG_PRINT_GENERAL); if (!locking_init(0)) { diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c index b9cdede69ed..1069f95ed83 100644 --- a/source3/smbd/connection.c +++ b/source3/smbd/connection.c @@ -166,7 +166,8 @@ int count_all_current_connections(void) Claim an entry in the connections database. ****************************************************************************/ -BOOL claim_connection(connection_struct *conn, const char *name,int max_connections,BOOL Clear, uint32 msg_flags) +BOOL claim_connection(connection_struct *conn, const char *name, + int max_connections, uint32 msg_flags) { struct connections_key key; struct connections_data crec; diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c index 12b1e846004..7aa97250629 100644 --- a/source3/smbd/negprot.c +++ b/source3/smbd/negprot.c @@ -584,7 +584,7 @@ int reply_negprot(connection_struct *conn, when the client connects to port 445. Of course there is a small window where we are listening to messages -- jerry */ - claim_connection(NULL,"",0,True,FLAG_MSG_GENERAL|FLAG_MSG_SMBD|FLAG_MSG_PRINT_GENERAL); + claim_connection(NULL,"",0,FLAG_MSG_GENERAL|FLAG_MSG_SMBD|FLAG_MSG_PRINT_GENERAL); /* Check for protocols, most desirable first */ for (protocol = 0; supported_protocols[protocol].proto_name; protocol++) { diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 6746271c094..3a2895cfcb2 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -1040,7 +1040,7 @@ extern void build_options(BOOL screen); /* Setup the main smbd so that we can get messages. */ /* don't worry about general printing messages here */ - claim_connection(NULL,"",0,True,FLAG_MSG_GENERAL|FLAG_MSG_SMBD); + claim_connection(NULL,"",0,FLAG_MSG_GENERAL|FLAG_MSG_SMBD); /* only start the background queue daemon if we are running as a daemon -- bad things will happen if diff --git a/source3/smbd/service.c b/source3/smbd/service.c index 6d2cdff5942..5b087fd5833 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -993,7 +993,7 @@ static connection_struct *make_connection_snum(int snum, user_struct *vuser, if (!claim_connection(conn, lp_servicename(snum), lp_max_connections(snum), - False,0)) { + 0)) { DEBUG(1,("too many connections - rejected\n")); conn_free(conn); *status = NT_STATUS_INSUFFICIENT_RESOURCES;