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:
parent
4731c33821
commit
d6777a66c0
@ -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
|
||||
};
|
||||
|
@ -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,
|
||||
};
|
||||
|
@ -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,
|
||||
};
|
||||
|
@ -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
|
||||
};
|
||||
|
@ -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,
|
||||
};
|
||||
|
@ -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
|
||||
};
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
};
|
||||
|
@ -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
|
||||
};
|
||||
|
@ -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
|
||||
};
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
};
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
};
|
||||
|
@ -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,
|
||||
};
|
||||
|
@ -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
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user