diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-09-22 18:15:24 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-09-22 18:16:09 +0200 |
commit | 1d92b2211cc507dd62526f564ec7f75a07110e00 (patch) | |
tree | b6f1cc8d975a814bfa6ae02252d8f5e190b1bab7 /source4/smbd | |
parent | 31dc3629475a07dcc9900929ce943c274db36250 (diff) | |
download | samba-1d92b2211cc507dd62526f564ec7f75a07110e00.tar.gz samba-1d92b2211cc507dd62526f564ec7f75a07110e00.tar.bz2 samba-1d92b2211cc507dd62526f564ec7f75a07110e00.zip |
s4: allways initialize the process model before it's used
metze
Diffstat (limited to 'source4/smbd')
-rw-r--r-- | source4/smbd/process_model.c | 4 | ||||
-rw-r--r-- | source4/smbd/process_model.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source4/smbd/process_model.c b/source4/smbd/process_model.c index 704e6cc7a2..d99d517d9f 100644 --- a/source4/smbd/process_model.c +++ b/source4/smbd/process_model.c @@ -22,6 +22,8 @@ #include "smbd/process_model.h" #include "param/param.h" +static const struct model_ops *process_model_byname(const char *name); + /* setup the events for the chosen process model */ @@ -99,7 +101,7 @@ _PUBLIC_ NTSTATUS process_model_init(struct loadparm_context *lp_ctx) /* return the operations structure for a named backend of the specified type */ -_PUBLIC_ const struct model_ops *process_model_byname(const char *name) +static const struct model_ops *process_model_byname(const char *name) { int i; diff --git a/source4/smbd/process_model.h b/source4/smbd/process_model.h index b545212091..a9b33a4725 100644 --- a/source4/smbd/process_model.h +++ b/source4/smbd/process_model.h @@ -78,7 +78,6 @@ struct process_model_critical_sizes { extern const struct model_ops single_ops; const struct model_ops *process_model_startup(struct event_context *ev, const char *model); -const struct model_ops *process_model_byname(const char *name); NTSTATUS register_process_model(const void *_ops); NTSTATUS process_model_init(struct loadparm_context *lp_ctx); |