diff options
author | Christian Hesse <mail@eworm.de> | 2014-07-01 10:22:50 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-01 16:38:37 +0200 |
commit | 8959ae0d4cc7921293a21182693b7d953f6cce9b (patch) | |
tree | ed33923f966243fb5eb217800eded8e72f75979e /man | |
parent | 793c098f0ad558eb8d4f9ce9291a5f5df473dd1a (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')
-rw-r--r-- | man/sd_journal_next.xml | 2 |
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", &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; |