From 1374661d4bbde99455a72927b33e6956d727c515 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 16 Sep 2015 18:05:04 +0200 Subject: [PATCH] README: Fix syntax error in example. Signed-off-by: Joachim Nilsson --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0107955..bacdbde 100644 --- a/README.md +++ b/README.md @@ -123,18 +123,18 @@ the event type's `_init()` function with the `uev_ctx_t` context. uev_exit(w->ctx); } - uev_t termw; + uev_t sigterm_watcher; - uev_signal_init(&ctx, &term, cleanup_exit, NULL, SIGTERM); + uev_signal_init(&ctx, &sigterm_watcher, cleanup_exit, NULL, SIGTERM); ``` When all watchers are registered, call the *event loop* with `uev_run()` and the argument to the event context. The `flags` parameter can be -used to integrate [libuEv] into another event loop. With `flags` set to -`UEV_ONCE` the event loop returns after having served the first event. -If `flags` is set to `UEV_ONCE | UEV_NONBLOCK` the event loop returns -immediately if no event is available. +used to integrate [libuEv][] into another event loop. With `flags` set +to `UEV_ONCE` the event loop returns after having served the first +event. If `flags` is set to `UEV_ONCE | UEV_NONBLOCK` the event loop +returns immediately if no event is available. ```C