X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsd_journal_next.xml;h=4df6b4e6fd9ff75943c014ff5113d98490465c22;hb=ce0f1493c399178a3c7796415bfe5abd105ad610;hp=0216d6e089dbea0cc842e27aed9e995eb81604d4;hpb=3b3d7d069d10d53336dbada1c67f739e3492b218;p=elogind.git
diff --git a/man/sd_journal_next.xml b/man/sd_journal_next.xml
index 0216d6e08..4df6b4e6f 100644
--- a/man/sd_journal_next.xml
+++ b/man/sd_journal_next.xml
@@ -158,7 +158,7 @@
sd_journal_previous_skip() interfaces are
available as a shared library, which can be compiled and
linked to with the
- libsystemd pkg-config1
+ libsystemd pkg-config1
file.
@@ -183,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;