[systemd-devel] [PATCH 2/2] man/sd_journal_get_data: fix variable naming in example

Christian Hesse list at eworm.de
Tue Jul 1 01:22:51 PDT 2014


From: Christian Hesse <mail at eworm.de>

---
 man/sd_journal_get_data.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man/sd_journal_get_data.xml b/man/sd_journal_get_data.xml
index 343b680..1222939 100644
--- a/man/sd_journal_get_data.xml
+++ b/man/sd_journal_get_data.xml
@@ -225,7 +225,7 @@
                 <programlisting>...
 int print_fields(sd_journal *j) {
         const void *data;
-        size_t l;
+        size_t length;
         SD_JOURNAL_FOREACH_DATA(j, data, length)
                 printf("%.*s\n", (int) length, data);
 }
-- 
2.0.1



More information about the systemd-devel mailing list