summaryrefslogtreecommitdiff
path: root/man/sd_journal_next.xml
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2014-07-01 10:22:50 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-01 16:38:37 +0200
commit8959ae0d4cc7921293a21182693b7d953f6cce9b (patch)
treeed33923f966243fb5eb217800eded8e72f75979e /man/sd_journal_next.xml
parent793c098f0ad558eb8d4f9ce9291a5f5df473dd1a (diff)
man/sd_journal_next: fix argument in example
The example does not compile, it fails with: error: passing argument 3 of ‘sd_journal_get_data’ from incompatible pointer type Cast to (const void **) to avoid this.
Diffstat (limited to 'man/sd_journal_next.xml')
-rw-r--r--man/sd_journal_next.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/man/sd_journal_next.xml b/man/sd_journal_next.xml
index 0216d6e089..5e691a15ba 100644
--- a/man/sd_journal_next.xml
+++ b/man/sd_journal_next.xml
@@ -183,7 +183,7 @@ int main(int argc, char *argv[]) {
const char *d;
size_t l;
- r = sd_journal_get_data(j, "MESSAGE", &amp;d, &amp;l);
+ r = sd_journal_get_data(j, "MESSAGE", (const void **)&amp;d, &amp;l);
if (r &lt; 0) {
fprintf(stderr, "Failed to read message field: %s\n", strerror(-r));
continue;