summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-12-29 17:33:51 +0100
committerStefan Metzmacher <metze@samba.org>2008-12-29 19:57:00 +0100
commit635a973be56e484312f336298bc17372075b307f (patch)
tree148b7697d188b48208881cd9f804f4c9c991c6f5
parent3dfb0e94670ebea5ab05bcf049b66c88e4601db8 (diff)
downloadsamba-635a973be56e484312f336298bc17372075b307f.tar.gz
samba-635a973be56e484312f336298bc17372075b307f.tar.bz2
samba-635a973be56e484312f336298bc17372075b307f.zip
s4:sys_lease_linux: use tevent
metze
-rw-r--r--source4/ntvfs/sysdep/config.mk2
-rw-r--r--source4/ntvfs/sysdep/sys_lease_linux.c14
2 files changed, 8 insertions, 8 deletions
diff --git a/source4/ntvfs/sysdep/config.mk b/source4/ntvfs/sysdep/config.mk
index 49ad70b95e..5feca6143a 100644
--- a/source4/ntvfs/sysdep/config.mk
+++ b/source4/ntvfs/sysdep/config.mk
@@ -18,7 +18,7 @@ sys_notify_inotify_OBJ_FILES = $(ntvfssrcdir)/sysdep/inotify.o
sys_notify_OBJ_FILES = $(ntvfssrcdir)/sysdep/sys_notify.o
[SUBSYSTEM::sys_lease_linux]
-PRIVATE_DEPENDENCIES = LIBEVENTS
+PRIVATE_DEPENDENCIES = LIBTEVENT
sys_lease_linux_OBJ_FILES = $(ntvfssrcdir)/sysdep/sys_lease_linux.o
diff --git a/source4/ntvfs/sysdep/sys_lease_linux.c b/source4/ntvfs/sysdep/sys_lease_linux.c
index 41f1cbd710..d1473627a7 100644
--- a/source4/ntvfs/sysdep/sys_lease_linux.c
+++ b/source4/ntvfs/sysdep/sys_lease_linux.c
@@ -22,8 +22,8 @@
*/
#include "includes.h"
+#include <tevent.h>
#include "system/filesys.h"
-#include "lib/events/events.h"
#include "ntvfs/sysdep/sys_lease.h"
#include "ntvfs/ntvfs.h"
#include "librpc/gen_ndr/ndr_opendb.h"
@@ -41,8 +41,8 @@ struct linux_lease_pending {
/* the global linked list of pending leases */
static struct linux_lease_pending *leases;
-static void linux_lease_signal_handler(struct event_context *ev_ctx,
- struct signal_event *se,
+static void linux_lease_signal_handler(struct tevent_context *ev_ctx,
+ struct tevent_signal *se,
int signum, int count,
void *_info, void *private_data)
{
@@ -89,11 +89,11 @@ static int linux_lease_pending_destructor(struct linux_lease_pending *p)
static NTSTATUS linux_lease_init(struct sys_lease_context *ctx)
{
- struct signal_event *se;
+ struct tevent_signal *se;
- se = event_add_signal(ctx->event_ctx, ctx,
- LINUX_LEASE_RT_SIGNAL, SA_SIGINFO,
- linux_lease_signal_handler, ctx);
+ se = tevent_add_signal(ctx->event_ctx, ctx,
+ LINUX_LEASE_RT_SIGNAL, SA_SIGINFO,
+ linux_lease_signal_handler, ctx);
NT_STATUS_HAVE_NO_MEMORY(se);
return NT_STATUS_OK;