README: Fix obvious error in example

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-09-20 13:38:39 +02:00
1 parent f2d5192aa2
commit 31fabccf7f
1 file changed
+2 -2
+2 -2
View File
@@ -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);