From 31fabccf7f0b49523f1883404cf5b936a9c608fe Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 20 Sep 2017 13:38:39 +0200 Subject: [PATCH] README: Fix obvious error in example Signed-off-by: Joachim Nilsson --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6a95843..8833d52 100644 --- a/README.md +++ b/README.md @@ -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) { - printf("Callback runs every other second.\n"); + puts("Every other second"); } int main(void) { uev_t timer; - uev_ctx_t *ctx; + uev_ctx_t ctx; uev_init(&ctx); uev_timer_init(&ctx, &timer, cb, NULL, 2 * 1000, 0);