From 1027e0dc4d84fc7b6b500ee74d13439f322633eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 21 Mar 2018 16:35:02 +0100 Subject: [PATCH] man: fix compilation of journal-iterate-poll.c Our examples should compile... --- man/journal-iterate-poll.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/man/journal-iterate-poll.c b/man/journal-iterate-poll.c index 174f6038fd..100d07e202 100644 --- a/man/journal-iterate-poll.c +++ b/man/journal-iterate-poll.c @@ -1,11 +1,13 @@ #include +#include #include int wait_for_changes(sd_journal *j) { - struct pollfd pollfd; + uint64_t t; int msec; + struct pollfd pollfd; - sd_journal_get_timeout(m, &t); + sd_journal_get_timeout(j, &t); if (t == (uint64_t) -1) msec = -1; else {