summaryrefslogtreecommitdiffstats
path: root/man/journal-iterate-poll.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-03-21 16:35:02 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-03-24 14:15:48 +0100
commit1027e0dc4d84fc7b6b500ee74d13439f322633eb (patch)
tree2827a978ecf0d1958fd623f97bc33271c9a86cfe /man/journal-iterate-poll.c
parentman: drop license header in glib-event-glue.c (diff)
downloadsystemd-1027e0dc4d84fc7b6b500ee74d13439f322633eb.tar.xz
systemd-1027e0dc4d84fc7b6b500ee74d13439f322633eb.zip
man: fix compilation of journal-iterate-poll.c
Our examples should compile...
Diffstat (limited to 'man/journal-iterate-poll.c')
-rw-r--r--man/journal-iterate-poll.c6
1 files 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 <poll.h>
+#include <time.h>
#include <systemd/sd-journal.h>
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 {