s4:lib/tevent: rename structs
[sfrench/samba-autobuild/.git] / source4 / smb_server / smb_server.c
index 367557dbb7422ff75b556f827ff2a1380b064a2e..e9531d8b39aae762539d22a34928db8bb869779a 100644 (file)
@@ -150,12 +150,12 @@ static void smbsrv_accept(struct stream_connection *conn)
        smb_conn->connection = conn;
        conn->private = smb_conn;
 
-       irpc_add_name(conn->msg_ctx, "smb_server");
-
        smb_conn->statistics.connect_time = timeval_current();
 
        smbsrv_management_init(smb_conn);
 
+       irpc_add_name(conn->msg_ctx, "smb_server");
+
        if (!NT_STATUS_IS_OK(share_get_context_by_name(smb_conn, lp_share_backend(smb_conn->lp_ctx), 
                                                       smb_conn->connection->event.ctx,
                                                       smb_conn->lp_ctx, &(smb_conn->share_context)))) {
@@ -174,7 +174,7 @@ static const struct stream_server_ops smb_stream_ops = {
 /*
   setup a listening socket on all the SMB ports for a particular address
 */
-_PUBLIC_ NTSTATUS smbsrv_add_socket(struct event_context *event_context,
+_PUBLIC_ NTSTATUS smbsrv_add_socket(struct tevent_context *event_context,
                                    struct loadparm_context *lp_ctx,
                               const struct model_ops *model_ops,
                               const char *address)