mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
s3:events: get rid of the stupid set_event_dispatch_time() function
metze
This commit is contained in:
parent
f1aa4457c3
commit
83ff9d3bcd
@ -62,7 +62,5 @@ struct timeval *get_timed_events_timeout(struct event_context *event_ctx,
|
||||
int event_loop_once(struct event_context *ev);
|
||||
void event_context_reinit(struct event_context *ev);
|
||||
struct event_context *event_context_init(TALLOC_CTX *mem_ctx);
|
||||
int set_event_dispatch_time(struct event_context *event_ctx,
|
||||
const char *event_name, struct timeval when);
|
||||
void dump_event_list(struct event_context *event_ctx);
|
||||
|
||||
|
@ -363,22 +363,6 @@ struct event_context *event_context_init(TALLOC_CTX *mem_ctx)
|
||||
return result;
|
||||
}
|
||||
|
||||
int set_event_dispatch_time(struct event_context *event_ctx,
|
||||
const char *event_name, struct timeval when)
|
||||
{
|
||||
struct timed_event *te;
|
||||
|
||||
for (te = event_ctx->timed_events; te; te = te->next) {
|
||||
if (strcmp(event_name, te->event_name) == 0) {
|
||||
DLIST_REMOVE(event_ctx->timed_events, te);
|
||||
te->when = when;
|
||||
add_event_by_time(te);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void dump_event_list(struct event_context *event_ctx)
|
||||
{
|
||||
struct timed_event *te;
|
||||
|
Loading…
x
Reference in New Issue
Block a user