goto done;
}
- evt_ctx = tevent_context_init(mem_ctx);
+ evt_ctx = samba_tevent_context_init(mem_ctx);
if (evt_ctx == NULL) {
d_fprintf(stderr, "ERROR: could not init event context\n");
goto done;
lp_load_global(get_dyn_CONFIGFILE());
- ev_ctx = tevent_context_init(mem_ctx);
+ ev_ctx = samba_tevent_context_init(mem_ctx);
if (ev_ctx == NULL) {
d_fprintf(stderr, "ERROR: could not init event context\n");
goto done;
/* Failing to init the msg_ctx isn't a fatal error. Only
root-level things (joining/leaving domains etc.) will be denied. */
- c->msg_ctx = messaging_init(c, event_context_init(c));
+ c->msg_ctx = messaging_init(c, samba_tevent_context_init(c));
rc = net_run_function(c, argc_new-1, argv_new+1, "net", net_func);
struct messaging_context *msg = NULL;
struct g_lock_ctx *g_ctx = NULL;
- ev = tevent_context_init(mem_ctx);
+ ev = samba_tevent_context_init(mem_ctx);
if (ev == NULL) {
d_fprintf(stderr, "ERROR: could not init event context\n");
goto fail;
* routines mostly return True==1 for success, but
* shell needs 0. */
- if (!(evt_ctx = tevent_context_init(NULL)) ||
+ if (!(evt_ctx = samba_tevent_context_init(NULL)) ||
!(msg_ctx = messaging_init(NULL, evt_ctx))) {
fprintf(stderr, "could not init messaging context\n");
TALLOC_FREE(frame);
* connection, usable by the db_open() calls further
* down.
*/
- msg_ctx = messaging_init(NULL, event_context_init(NULL));
+ msg_ctx = messaging_init(NULL, samba_tevent_context_init(NULL));
if (msg_ctx == NULL) {
fprintf(stderr, "messaging_init failed\n");
ret = -1;