man: fix compilation of journal-iterate-poll.c

Our examples should compile...
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-03-21 16:35:02 +01:00
parent c0be035da7
commit 1027e0dc4d
1 changed files with 4 additions and 2 deletions

View File

@ -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 {