summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 15:59:00 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 18:09:34 +0200
commitfc6e7bdc9e752b7b5ee4b978a605dde5b7c075e4 (patch)
treea00105e92c606eb80eb433dee26660b7e2d6ef8c
parentc6e6aee0a0524cf68bb206b339040c4ccf208bb2 (diff)
downloadsamba-fc6e7bdc9e752b7b5ee4b978a605dde5b7c075e4.tar.gz
samba-fc6e7bdc9e752b7b5ee4b978a605dde5b7c075e4.tar.bz2
samba-fc6e7bdc9e752b7b5ee4b978a605dde5b7c075e4.zip
s3: Lift the server_messaging_context from print_notify_event_send_messages
-rw-r--r--source3/printing/notify.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/printing/notify.c b/source3/printing/notify.c
index df9a15073d..1a499b2ca8 100644
--- a/source3/printing/notify.c
+++ b/source3/printing/notify.c
@@ -230,11 +230,13 @@ static void print_notify_event_send_messages(struct tevent_context *event_ctx,
struct timeval now,
void *private_data)
{
+ struct messaging_context *msg_ctx = talloc_get_type_abort(
+ private_data, struct messaging_context);
/* Remove this timed event handler. */
TALLOC_FREE(notify_event);
change_to_root_user();
- print_notify_send_messages(server_messaging_context(), 0);
+ print_notify_send_messages(msg_ctx, 0);
}
/**********************************************************************
@@ -332,7 +334,8 @@ to notify_queue_head\n", msg->type, msg->field, msg->printer));
/* Add an event for 1 second's time to send this queue. */
notify_event = tevent_add_timer(server_event_context(), NULL,
timeval_current_ofs(1,0),
- print_notify_event_send_messages, NULL);
+ print_notify_event_send_messages,
+ server_messaging_context());
}
}