diff options
author | Volker Lendecke <vl@samba.org> | 2017-06-17 21:26:27 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-06-21 03:15:07 +0200 |
commit | a7504f555eff101a10ded653ceac98d8294c1659 (patch) | |
tree | da3f01c1a3e42f1f6cb9fb7a87037fa674283a46 /lib/tevent | |
parent | ce9e92c114ef296e34017c067ed064388864309c (diff) | |
download | samba-a7504f555eff101a10ded653ceac98d8294c1659.tar.gz |
tevent: Simplify create_immediate
Not much change, just 9 lines less of code.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/tevent')
-rw-r--r-- | lib/tevent/tevent.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/tevent/tevent.c b/lib/tevent/tevent.c index f3b18a15272..5f44b035e50 100644 --- a/lib/tevent/tevent.c +++ b/lib/tevent/tevent.c @@ -616,16 +616,7 @@ struct tevent_immediate *_tevent_create_immediate(TALLOC_CTX *mem_ctx, im = talloc(mem_ctx, struct tevent_immediate); if (im == NULL) return NULL; - im->prev = NULL; - im->next = NULL; - im->event_ctx = NULL; - im->create_location = location; - im->handler = NULL; - im->private_data = NULL; - im->handler_name = NULL; - im->schedule_location = NULL; - im->cancel_fn = NULL; - im->additional_data = NULL; + *im = (struct tevent_immediate) { .create_location = location }; return im; } |