mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3: Remove "conn" from sys_notify_context
This commit is contained in:
parent
8e256a2734
commit
6a2bf12f6a
@ -192,7 +192,6 @@ struct notify_change_request;
|
|||||||
struct sys_notify_backend;
|
struct sys_notify_backend;
|
||||||
struct sys_notify_context {
|
struct sys_notify_context {
|
||||||
struct event_context *ev;
|
struct event_context *ev;
|
||||||
struct connection_struct *conn;
|
|
||||||
void *private_data; /* For use by the system backend */
|
void *private_data; /* For use by the system backend */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1648,7 +1648,7 @@ static NTSTATUS vfswrap_notify_watch(vfs_handle_struct *vfs_handle,
|
|||||||
* Until that is the case, hard-code inotify here.
|
* Until that is the case, hard-code inotify here.
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_INOTIFY
|
#ifdef HAVE_INOTIFY
|
||||||
if (lp_kernel_change_notify(ctx->conn->params)) {
|
if (lp_kernel_change_notify(vfs_handle->conn->params)) {
|
||||||
return inotify_watch(ctx, e, path, callback, private_data,
|
return inotify_watch(ctx, e, path, callback, private_data,
|
||||||
handle);
|
handle);
|
||||||
}
|
}
|
||||||
|
@ -542,7 +542,6 @@ struct sys_notify_context *sys_notify_context_create(connection_struct *conn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
ctx->ev = ev;
|
ctx->ev = ev;
|
||||||
ctx->conn = conn;
|
|
||||||
ctx->private_data = NULL;
|
ctx->private_data = NULL;
|
||||||
return ctx;
|
return ctx;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user