]> git.ipfire.org Git - thirdparty/systemd.git/commit
man: use external .c files for three examples
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 10 Oct 2022 07:18:26 +0000 (09:18 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 11 Oct 2022 14:59:00 +0000 (16:59 +0200)
commit29c45dc4348e7db61aa80ba1657cbc2d8b1a19ee
tree82cedba74276d810467c79a990d7952b90852e8a
parent0cf1a4b3a7e0b870912ec0f986aa8107309a761e
man: use external .c files for three examples

This way it's much easier to test that the code compiles without issues.
It's also easier to edit the code.

Indentation in one of the examples is reduced to two spaces. This is what we
use in man pages to make them fit on screen better.
man/journal-enumerate-fields.c [new file with mode: 0644]
man/journal-iterate-foreach.c [new file with mode: 0644]
man/journal-stream-fd.c [new file with mode: 0644]
man/sd_journal_enumerate_fields.xml
man/sd_journal_next.xml
man/sd_journal_stream_fd.xml