1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

source4 smbd: Make the service_details structure constant.

Make the service_details structure a static const.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
Gary Lockyer 2018-08-23 09:29:56 +12:00 committed by Gary Lockyer
parent 4731c33821
commit d6777a66c0
17 changed files with 17 additions and 17 deletions

View File

@ -248,7 +248,7 @@ static void cldapd_task_init(struct task_server *task)
*/
NTSTATUS server_service_cldapd_init(TALLOC_CTX *ctx)
{
struct service_details details = {
static const struct service_details details = {
.inhibit_fork_on_accept = true,
.inhibit_pre_fork = true
};

View File

@ -923,7 +923,7 @@ static void dns_task_init(struct task_server *task)
NTSTATUS server_service_dns_init(TALLOC_CTX *ctx)
{
struct service_details details = {
static const struct service_details details = {
.inhibit_fork_on_accept = true,
.inhibit_pre_fork = true,
};

View File

@ -712,7 +712,7 @@ static void dnsupdate_task_init(struct task_server *task)
*/
NTSTATUS server_service_dnsupdate_init(TALLOC_CTX *ctx)
{
struct service_details details = {
static const struct service_details details = {
.inhibit_fork_on_accept = true,
.inhibit_pre_fork = true,
};

View File

@ -352,7 +352,7 @@ static void kccsrv_task_init(struct task_server *task)
*/
NTSTATUS server_service_kcc_init(TALLOC_CTX *ctx)
{
struct service_details details = {
static const struct service_details details = {
.inhibit_fork_on_accept = true,
.inhibit_pre_fork = true
};

View File

@ -533,7 +533,7 @@ static void dreplsrv_task_init(struct task_server *task)
*/
NTSTATUS server_service_drepl_init(TALLOC_CTX *ctx)
{
struct service_details details = {
static const struct service_details details = {
.inhibit_fork_on_accept = true,
.inhibit_pre_fork = true,
};

View File

@ -324,7 +324,7 @@ static void echo_task_init(struct task_server *task)
*/
NTSTATUS server_service_echo_init(TALLOC_CTX *ctx)
{
struct service_details details = {
static const struct service_details details = {
.inhibit_fork_on_accept = true,
.inhibit_pre_fork = true
};

View File

@ -465,7 +465,7 @@ static void kdc_task_init(struct task_server *task)
/* called at smbd startup - register ourselves as a server service */
NTSTATUS server_service_kdc_init(TALLOC_CTX *ctx)
{
struct service_details details = {
static const struct service_details details = {
.inhibit_fork_on_accept = true,
/*
* Need to prevent pre-forking on kdc.

View File

@ -352,7 +352,7 @@ NTSTATUS server_service_mitkdc_init(TALLOC_CTX *mem_ctx);
NTSTATUS server_service_mitkdc_init(TALLOC_CTX *mem_ctx)
{
struct service_details details = {
static const struct service_details details = {
.inhibit_fork_on_accept = true,
/*
* Need to prevent pre-forking on kdc.

View File

@ -1278,7 +1278,7 @@ failed:
NTSTATUS server_service_ldap_init(TALLOC_CTX *ctx)
{
struct service_details details = {
static const struct service_details details = {
.inhibit_fork_on_accept = false,
.inhibit_pre_fork = false
};

View File

@ -105,7 +105,7 @@ static void nbtd_task_init(struct task_server *task)
*/
NTSTATUS server_service_nbtd_init(TALLOC_CTX *ctx)
{
struct service_details details = {
static const struct service_details details = {
.inhibit_fork_on_accept = true,
.inhibit_pre_fork = true
};

View File

@ -549,7 +549,7 @@ static void ntp_signd_task_init(struct task_server *task)
/* called at smbd startup - register ourselves as a server service */
NTSTATUS server_service_ntp_signd_init(TALLOC_CTX *ctx)
{
struct service_details details = {
static const struct service_details details = {
.inhibit_fork_on_accept = true,
.inhibit_pre_fork = true
};

View File

@ -142,7 +142,7 @@ failed:
NTSTATUS server_service_rpc_init(TALLOC_CTX *ctx)
{
struct service_details details = {
static const struct service_details details = {
/*
* This is a SNOWFLAKE, but sadly one that we
* will have to keep for now. The RPC server

View File

@ -94,7 +94,7 @@ failed:
/* called at smbd startup - register ourselves as a server service */
NTSTATUS server_service_smb_init(TALLOC_CTX *ctx)
{
struct service_details details = {
static const struct service_details details = {
.inhibit_fork_on_accept = true,
.inhibit_pre_fork = true
};

View File

@ -40,7 +40,7 @@ static struct registered_server {
NTSTATUS register_server_service(TALLOC_CTX *ctx,
const char *name,
void (*task_init) (struct task_server *),
struct service_details *details)
const struct service_details *details)
{
struct registered_server *srv;
srv = talloc(ctx, struct registered_server);

View File

@ -371,7 +371,7 @@ failed:
/* called at smbd startup - register ourselves as a server service */
NTSTATUS server_service_web_init(TALLOC_CTX *ctx)
{
struct service_details details = {
static const struct service_details details = {
.inhibit_fork_on_accept = true,
.inhibit_pre_fork = true
};

View File

@ -89,7 +89,7 @@ NTSTATUS server_service_winbindd_init(TALLOC_CTX *);
NTSTATUS server_service_winbindd_init(TALLOC_CTX *ctx)
{
struct service_details details = {
static const struct service_details details = {
.inhibit_fork_on_accept = true,
.inhibit_pre_fork = true,
};

View File

@ -508,7 +508,7 @@ static void wreplsrv_task_init(struct task_server *task)
*/
NTSTATUS server_service_wrepl_init(TALLOC_CTX *ctx)
{
struct service_details details = {
static const struct service_details details = {
.inhibit_fork_on_accept = true,
.inhibit_pre_fork = true
};