summaryrefslogtreecommitdiff
path: root/man/sd_journal_query_unique.xml
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-10-18 23:34:38 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-10-18 23:45:30 +0200
commit774471b68a948e58c9fc79d61b6f79dbc2e01b37 (patch)
treebea577081890c78557655f76ba4a983ddc3b7716 /man/sd_journal_query_unique.xml
parentad57912eb0ec7d4fabd6a8d4267baa669bd04bb2 (diff)
man: fix compilation warning in sd_journal_query_unique example
Diffstat (limited to 'man/sd_journal_query_unique.xml')
-rw-r--r--man/sd_journal_query_unique.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/man/sd_journal_query_unique.xml b/man/sd_journal_query_unique.xml
index b0e43dfeeb..f2f8af0eb5 100644
--- a/man/sd_journal_query_unique.xml
+++ b/man/sd_journal_query_unique.xml
@@ -191,7 +191,7 @@ int main(int argc, char *argv[]) {
return 1;
}
SD_JOURNAL_FOREACH_UNIQUE(j, d, l)
- printf("%.*s\n", (int) l, d);
+ printf("%.*s\n", (int) l, (const char*) d);
sd_journal_close(j);
return 0;
}</programlisting>