mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-29 21:18:45 +00:00
README: Fix obvious error in example
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
f2d5192aa2
commit
31fabccf7f
1 file changed
+2
-2
@@ -40,13 +40,13 @@ The library documentation is available as a [separate document](API.md).
|
|||||||
|
|
||||||
static void cb(uev_t *w, void *arg, int events)
|
static void cb(uev_t *w, void *arg, int events)
|
||||||
{
|
{
|
||||||
printf("Callback runs every other second.\n");
|
puts("Every other second");
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
uev_t timer;
|
uev_t timer;
|
||||||
uev_ctx_t *ctx;
|
uev_ctx_t ctx;
|
||||||
|
|
||||||
uev_init(&ctx);
|
uev_init(&ctx);
|
||||||
uev_timer_init(&ctx, &timer, cb, NULL, 2 * 1000, 0);
|
uev_timer_init(&ctx, &timer, cb, NULL, 2 * 1000, 0);
|
||||||
|
|||||||
Reference in new issue
Block a user