X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsd_journal_next.xml;h=5e691a15bab156b5652ed8da00d1f1993d16ce8d;hb=02ea24ca2a0aac854c4e9e7d712f6464c8b29e4a;hp=11066611f13ae2fd61c569ddb2cc1e1e5cd5866b;hpb=74d005783e355acc784d123024e33bbb66ef9ef1;p=elogind.git
diff --git a/man/sd_journal_next.xml b/man/sd_journal_next.xml
index 11066611f..5e691a15b 100644
--- a/man/sd_journal_next.xml
+++ b/man/sd_journal_next.xml
@@ -58,34 +58,34 @@
int sd_journal_next
- sd_journal* j
+ sd_journal *j
int sd_journal_previous
- sd_journal* j
+ sd_journal *j
int sd_journal_next_skip
- sd_journal* j
+ sd_journal *j
uint64_t skip
int sd_journal_previous_skip
- sd_journal* j
+ sd_journal *j
uint64_t skip
SD_JOURNAL_FOREACH
- sd_journal* j
+ sd_journal *j
SD_JOURNAL_FOREACH_BACKWARDS
- sd_journal* j
+ sd_journal *j
@@ -102,7 +102,7 @@
functions such as
sd_journal_get_data3.
- Similar, sd_journal_previous() sets
+ Similarly, sd_journal_previous() sets
the read pointer back one entry.
sd_journal_next_skip() and
@@ -129,7 +129,7 @@
sd_journal_seek_head3
and sd_journal_next() in order to
make iterating through the journal easier. See below
- for an example. Similar,
+ for an example. Similarly,
SD_JOURNAL_FOREACH_BACKWARDS()
may be used for iterating the journal in reverse
order.
@@ -156,10 +156,9 @@
The sd_journal_next(), sd_journal_previous(),
sd_journal_next_skip() and
sd_journal_previous_skip() interfaces are
- available as shared library, which can be compiled and
+ available as a shared library, which can be compiled and
linked to with the
- libsystemd-journal
- pkg-config1
+ libsystemd pkg-config1
file.
@@ -184,7 +183,7 @@ int main(int argc, char *argv[]) {
const char *d;
size_t l;
- r = sd_journal_get_data(j, "MESSAGE", &d, &l);
+ r = sd_journal_get_data(j, "MESSAGE", (const void **)&d, &l);
if (r < 0) {
fprintf(stderr, "Failed to read message field: %s\n", strerror(-r));
continue;