man: fix compilation warning in sd_journal_query_unique example

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2012-10-18 23:45:30 +02:00
parent ad57912eb0
commit 774471b68a
+1 -1
View File
@@ -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>